home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994…tember: Reference Library / Dev.CD Sep 94.toast / Technical Documentation / Tools Demos & Tech Overviews / AppleSearch Developer Info / AppleSearch Overview < prev   
MacBinary  |  1994-07-24  |  297.6 KB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Wed Nov 3 04:23:56 1993, modified Sun Jul 24 14:59:11 1994, creator 'HLX2', type 'ONLN', 298920 bytes "AppleSearch Overview" , at 0x49028 5596 bytes resource default (weak)
99% file data default
66% TrID raw Group 3 FAX bitmap default (weak)
33% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 14 41 70 70 6c 65 53 | 65 61 72 63 68 20 4f 76 |..AppleS|earch Ov|
|00000010| 65 72 76 69 65 77 00 00 | 00 00 00 00 00 00 00 00 |erview..|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 04 8f a8 00 | 00 15 dc a8 fd 29 2c aa |........|.....),.|
|00000060| 58 6a 7f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |Xj......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 fb 0f 00 00 |........|........|
|00000080| 09 f0 09 41 70 70 6c 65 | 53 65 61 72 63 68 20 43 |...Apple|Search C|
|00000090| 6c 69 65 6e 74 20 44 65 | 76 65 6c 6f 70 65 72 d5 |lient De|veloper.|
|000000a0| 73 20 4b 69 74 20 4f 76 | 65 72 76 69 65 77 0d 0d |s Kit Ov|erview..|
|000000b0| f0 20 41 70 70 6c 65 20 | 43 6f 6d 70 75 74 65 72 |. Apple |Computer|
|000000c0| 2c 20 49 6e 63 2e 0d 54 | 68 69 73 20 6d 61 6e 75 |, Inc..T|his manu|
|000000d0| 61 6c 20 61 6e 64 20 74 | 68 65 20 73 6f 66 74 77 |al and t|he softw|
|000000e0| 61 72 65 20 64 65 73 63 | 72 69 62 65 64 20 69 6e |are desc|ribed in|
|000000f0| 20 69 74 20 61 72 65 20 | 63 6f 70 79 72 69 67 68 | it are |copyrigh|
|00000100| 74 65 64 2c 20 77 69 74 | 68 20 61 6c 6c 20 72 69 |ted, wit|h all ri|
|00000110| 67 68 74 73 20 72 65 73 | 65 72 76 65 64 2e 20 55 |ghts res|erved. U|
|00000120| 6e 64 65 72 20 74 68 65 | 20 63 6f 70 79 72 69 67 |nder the| copyrig|
|00000130| 68 74 20 6c 61 77 73 2c | 20 74 68 69 73 20 6d 61 |ht laws,| this ma|
|00000140| 6e 75 61 6c 20 6f 72 20 | 74 68 65 20 73 6f 66 74 |nual or |the soft|
|00000150| 77 61 72 65 20 6d 61 79 | 20 6e 6f 74 20 62 65 20 |ware may| not be |
|00000160| 63 6f 70 69 65 64 2c 20 | 69 6e 20 77 68 6f 6c 65 |copied, |in whole|
|00000170| 20 6f 72 20 70 61 72 74 | 2c 20 77 69 74 68 6f 75 | or part|, withou|
|00000180| 74 20 77 72 69 74 74 65 | 6e 20 63 6f 6e 73 65 6e |t writte|n consen|
|00000190| 74 20 6f 66 20 41 70 70 | 6c 65 2c 20 65 78 63 65 |t of App|le, exce|
|000001a0| 70 74 20 69 6e 20 74 68 | 65 20 6e 6f 72 6d 61 6c |pt in th|e normal|
|000001b0| 20 75 73 65 20 6f 66 20 | 74 68 65 20 73 6f 66 74 | use of |the soft|
|000001c0| 77 61 72 65 20 6f 72 20 | 74 6f 20 6d 61 6b 65 20 |ware or |to make |
|000001d0| 61 20 62 61 63 6b 75 70 | 20 63 6f 70 79 20 6f 66 |a backup| copy of|
|000001e0| 20 74 68 65 20 73 6f 66 | 74 77 61 72 65 2e 20 54 | the sof|tware. T|
|000001f0| 68 65 20 73 61 6d 65 20 | 70 72 6f 70 72 69 65 74 |he same |propriet|
|00000200| 61 72 79 20 61 6e 64 20 | 63 6f 70 79 72 69 67 68 |ary and |copyrigh|
|00000210| 74 20 6e 6f 74 69 63 65 | 73 20 6d 75 73 74 20 62 |t notice|s must b|
|00000220| 65 20 61 66 66 69 78 65 | 64 20 74 6f 20 61 6e 79 |e affixe|d to any|
|00000230| 20 70 65 72 6d 69 74 74 | 65 64 20 63 6f 70 69 65 | permitt|ed copie|
|00000240| 73 20 61 73 20 77 65 72 | 65 20 61 66 66 69 78 65 |s as wer|e affixe|
|00000250| 64 20 74 6f 20 74 68 65 | 20 6f 72 69 67 69 6e 61 |d to the| origina|
|00000260| 6c 2e 20 54 68 69 73 20 | 65 78 63 65 70 74 69 6f |l. This |exceptio|
|00000270| 6e 20 64 6f 65 73 20 6e | 6f 74 20 61 6c 6c 6f 77 |n does n|ot allow|
|00000280| 20 63 6f 70 69 65 73 20 | 74 6f 20 62 65 20 6d 61 | copies |to be ma|
|00000290| 64 65 20 66 6f 72 20 6f | 74 68 65 72 73 2c 20 77 |de for o|thers, w|
|000002a0| 68 65 74 68 65 72 20 6f | 72 20 6e 6f 74 20 73 6f |hether o|r not so|
|000002b0| 6c 64 2c 20 62 75 74 20 | 61 6c 6c 20 6f 66 20 74 |ld, but |all of t|
|000002c0| 68 65 20 6d 61 74 65 72 | 69 61 6c 20 70 75 72 63 |he mater|ial purc|
|000002d0| 68 61 73 65 64 20 28 77 | 69 74 68 20 61 6c 6c 20 |hased (w|ith all |
|000002e0| 62 61 63 6b 75 70 20 63 | 6f 70 69 65 73 29 20 6d |backup c|opies) m|
|000002f0| 61 79 20 62 65 20 73 6f | 6c 64 2c 20 67 69 76 65 |ay be so|ld, give|
|00000300| 6e 2c 20 6f 72 20 6c 6f | 61 6e 65 64 20 74 6f 20 |n, or lo|aned to |
|00000310| 61 6e 6f 74 68 65 72 20 | 70 65 72 73 6f 6e 2e 20 |another |person. |
|00000320| 55 6e 64 65 72 20 74 68 | 65 20 6c 61 77 2c 20 63 |Under th|e law, c|
|00000330| 6f 70 79 69 6e 67 20 69 | 6e 63 6c 75 64 65 73 20 |opying i|ncludes |
|00000340| 74 72 61 6e 73 6c 61 74 | 69 6e 67 20 69 6e 74 6f |translat|ing into|
|00000350| 20 61 6e 6f 74 68 65 72 | 20 6c 61 6e 67 75 61 67 | another| languag|
|00000360| 65 20 6f 72 20 66 6f 72 | 6d 61 74 2e 0d 59 6f 75 |e or for|mat..You|
|00000370| 20 6d 61 79 20 75 73 65 | 20 74 68 65 20 73 6f 66 | may use| the sof|
|00000380| 74 77 61 72 65 20 6f 6e | 20 61 6e 79 20 63 6f 6d |tware on| any com|
|00000390| 70 75 74 65 72 20 6f 77 | 6e 65 64 20 62 79 20 79 |puter ow|ned by y|
|000003a0| 6f 75 2c 20 62 75 74 20 | 65 78 74 72 61 20 63 6f |ou, but |extra co|
|000003b0| 70 69 65 73 20 63 61 6e | 6e 6f 74 20 62 65 20 6d |pies can|not be m|
|000003c0| 61 64 65 20 66 6f 72 20 | 74 68 69 73 20 70 75 72 |ade for |this pur|
|000003d0| 70 6f 73 65 2e 0d 54 68 | 65 20 41 70 70 6c 65 20 |pose..Th|e Apple |
|000003e0| 6c 6f 67 6f 20 69 73 20 | 61 20 72 65 67 69 73 74 |logo is |a regist|
|000003f0| 65 72 65 64 20 74 72 61 | 64 65 6d 61 72 6b 20 6f |ered tra|demark o|
|00000400| 66 20 41 70 70 6c 65 20 | 43 6f 6d 70 75 74 65 72 |f Apple |Computer|
|00000410| 2c 20 49 6e 63 2e 20 55 | 73 65 20 6f 66 20 74 68 |, Inc. U|se of th|
|00000420| 65 20 d2 6b 65 79 62 6f | 61 72 64 d3 20 41 70 70 |e .keybo|ard. App|
|00000430| 6c 65 20 6c 6f 67 6f 20 | 28 4f 70 74 69 6f 6e 2d |le logo |(Option-|
|00000440| 53 68 69 66 74 2d 6b 29 | 20 66 6f 72 20 63 6f 6d |Shift-k)| for com|
|00000450| 6d 65 72 63 69 61 6c 20 | 70 75 72 70 6f 73 65 73 |mercial |purposes|
|00000460| 20 77 69 74 68 6f 75 74 | 20 74 68 65 20 70 72 69 | without| the pri|
|00000470| 6f 72 20 77 72 69 74 74 | 65 6e 20 63 6f 6e 73 65 |or writt|en conse|
|00000480| 6e 74 20 6f 66 20 41 70 | 70 6c 65 20 6d 61 79 20 |nt of Ap|ple may |
|00000490| 63 6f 6e 73 74 69 74 75 | 74 65 20 74 72 61 64 65 |constitu|te trade|
|000004a0| 6d 61 72 6b 20 69 6e 66 | 72 69 6e 67 65 6d 65 6e |mark inf|ringemen|
|000004b0| 74 20 61 6e 64 20 75 6e | 66 61 69 72 20 63 6f 6d |t and un|fair com|
|000004c0| 70 65 74 69 74 69 6f 6e | 20 69 6e 20 76 69 6f 6c |petition| in viol|
|000004d0| 61 74 69 6f 6e 20 6f 66 | 20 66 65 64 65 72 61 6c |ation of| federal|
|000004e0| 20 61 6e 64 20 73 74 61 | 74 65 20 6c 61 77 73 2e | and sta|te laws.|
|000004f0| 0d 45 76 65 72 79 20 65 | 66 66 6f 72 74 20 68 61 |.Every e|ffort ha|
|00000500| 73 20 62 65 65 6e 20 6d | 61 64 65 20 74 6f 20 65 |s been m|ade to e|
|00000510| 6e 73 75 72 65 20 74 68 | 61 74 20 74 68 65 20 69 |nsure th|at the i|
|00000520| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 69 6e 20 74 68 |nformati|on in th|
|00000530| 69 73 20 6d 61 6e 75 61 | 6c 20 69 73 20 61 63 63 |is manua|l is acc|
|00000540| 75 72 61 74 65 2e 20 41 | 70 70 6c 65 20 69 73 20 |urate. A|pple is |
|00000550| 6e 6f 74 20 72 65 73 70 | 6f 6e 73 69 62 6c 65 20 |not resp|onsible |
|00000560| 66 6f 72 20 70 72 69 6e | 74 69 6e 67 20 6f 72 20 |for prin|ting or |
|00000570| 63 6c 65 72 69 63 61 6c | 20 65 72 72 6f 72 73 2e |clerical| errors.|
|00000580| 0d a9 20 41 70 70 6c 65 | 20 43 6f 6d 70 75 74 65 |.. Apple| Compute|
|00000590| 72 2c 20 49 6e 63 2e 2c | 20 31 39 39 33 0d 32 30 |r, Inc.,| 1993.20|
|000005a0| 35 32 35 20 4d 61 72 69 | 61 6e 69 20 41 76 65 6e |525 Mari|ani Aven|
|000005b0| 75 65 20 0d 43 75 70 65 | 72 74 69 6e 6f 2c 20 43 |ue .Cupe|rtino, C|
|000005c0| 41 20 39 35 30 31 34 2d | 36 32 39 39 0d 28 34 30 |A 95014-|6299.(40|
|000005d0| 38 29 20 39 39 36 2d 31 | 30 31 30 0d 0d 43 6f 6e |8) 996-1|010..Con|
|000005e0| 74 65 6e 74 73 0d 50 72 | 65 66 61 63 65 20 20 2f |tents.Pr|eface /|
|000005f0| 20 20 76 69 69 0d 09 31 | 09 41 72 63 68 69 74 65 | vii..1|.Archite|
|00000600| 63 74 75 72 61 6c 20 4f | 76 65 72 76 69 65 77 20 |ctural O|verview |
|00000610| 20 2f 20 20 31 0d 41 70 | 70 6c 65 53 65 61 72 63 | / 1.Ap|pleSearc|
|00000620| 68 20 73 6f 66 74 77 61 | 72 65 20 63 6f 6d 70 6f |h softwa|re compo|
|00000630| 6e 65 6e 74 73 20 20 2f | 20 20 32 0d 57 72 69 74 |nents /| 2.Writ|
|00000640| 69 6e 67 20 79 6f 75 72 | 20 6f 77 6e 20 63 6c 69 |ing your| own cli|
|00000650| 65 6e 74 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |ent appl|ication |
|00000660| 20 2f 20 20 33 0d 43 6c | 69 65 6e 74 2f 73 65 72 | / 3.Cl|ient/ser|
|00000670| 76 65 72 20 63 6f 6e 6e | 65 63 74 69 6f 6e 20 20 |ver conn|ection |
|00000680| 2f 20 20 34 0d 49 6e 66 | 6f 72 6d 61 74 69 6f 6e |/ 4.Inf|ormation|
|00000690| 20 73 6f 75 72 63 65 73 | 20 20 2f 20 20 35 0d 49 | sources| / 5.I|
|000006a0| 6d 6d 65 64 69 61 74 65 | 20 73 65 61 72 63 68 65 |mmediate| searche|
|000006b0| 73 20 20 2f 20 20 35 0d | 41 72 74 69 63 6c 65 20 |s / 5.|Article |
|000006c0| 72 65 74 72 69 65 76 61 | 6c 20 20 2f 20 20 36 0d |retrieva|l / 6.|
|000006d0| 4f 72 69 67 69 6e 61 6c | 20 66 69 6c 65 20 72 65 |Original| file re|
|000006e0| 74 72 69 65 76 61 6c 20 | 20 2f 20 20 36 0d 53 63 |trieval | / 6.Sc|
|000006f0| 68 65 64 75 6c 65 64 20 | 73 65 61 72 63 68 65 73 |heduled |searches|
|00000700| 20 20 2f 20 20 36 0d 53 | 65 72 76 65 72 20 6f 62 | / 6.S|erver ob|
|00000710| 6a 65 63 74 20 64 61 74 | 61 62 61 73 65 20 20 2f |ject dat|abase /|
|00000720| 20 20 37 0d 09 32 09 41 | 70 70 6c 65 20 45 76 65 | 7..2.A|pple Eve|
|00000730| 6e 74 73 20 41 70 70 6c | 69 63 61 74 69 6f 6e 20 |nts Appl|ication |
|00000740| 50 72 6f 67 72 61 6d 6d | 69 6e 67 20 49 6e 74 65 |Programm|ing Inte|
|00000750| 72 66 61 63 65 20 20 2f | 20 20 39 0d 53 65 6e 64 |rface /| 9.Send|
|00000760| 69 6e 67 20 61 6e 64 20 | 72 65 63 65 69 76 69 6e |ing and |receivin|
|00000770| 67 20 41 70 70 6c 65 53 | 65 61 72 63 68 20 41 70 |g AppleS|earch Ap|
|00000780| 70 6c 65 20 65 76 65 6e | 74 73 20 20 2f 20 20 31 |ple even|ts / 1|
|00000790| 30 0d 54 68 65 20 41 70 | 70 6c 65 53 65 61 72 63 |0.The Ap|pleSearc|
|000007a0| 68 20 43 6f 6d 6d 75 6e | 69 63 61 74 69 6f 6e 20 |h Commun|ication |
|000007b0| 45 78 74 65 6e 73 69 6f | 6e 20 20 2f 20 20 31 31 |Extensio|n / 11|
|000007c0| 0d 43 6f 6e 6e 65 63 74 | 69 6e 67 20 74 6f 20 61 |.Connect|ing to a|
|000007d0| 20 73 65 72 76 65 72 20 | 20 2f 20 20 31 34 0d 41 | server | / 14.A|
|000007e0| 70 70 6c 65 20 65 76 65 | 6e 74 20 41 50 49 20 73 |pple eve|nt API s|
|000007f0| 75 6d 6d 61 72 79 20 20 | 2f 20 20 31 34 0d 45 76 |ummary |/ 14.Ev|
|00000800| 65 6e 74 20 63 6c 61 73 | 73 65 73 20 20 2f 20 20 |ent clas|ses / |
|00000810| 31 34 0d 45 76 65 6e 74 | 20 49 44 73 20 20 2f 20 |14.Event| IDs / |
|00000820| 20 31 34 0d 41 70 70 6c | 65 20 65 76 65 6e 74 20 | 14.Appl|e event |
|00000830| 6b 65 79 77 6f 72 64 73 | 20 20 2f 20 20 31 35 0d |keywords| / 15.|
|00000840| 53 74 72 75 63 74 75 72 | 65 73 20 20 2f 20 20 31 |Structur|es / 1|
|00000850| 36 0d 09 33 09 43 20 4c | 69 62 72 61 72 79 20 41 |6..3.C L|ibrary A|
|00000860| 70 70 6c 69 63 61 74 69 | 6f 6e 20 50 72 6f 67 72 |pplicati|on Progr|
|00000870| 61 6d 6d 69 6e 67 20 49 | 6e 74 65 72 66 61 63 65 |amming I|nterface|
|00000880| 20 20 2f 20 20 31 37 0d | 4d 61 6b 69 6e 67 20 61 | / 17.|Making a|
|00000890| 20 43 20 4c 69 62 72 61 | 72 79 20 41 50 49 20 66 | C Libra|ry API f|
|000008a0| 75 6e 63 74 69 6f 6e 20 | 63 61 6c 6c 20 20 2f 20 |unction |call / |
|000008b0| 20 31 38 0d 43 6f 6d 70 | 6c 65 74 69 6f 6e 20 72 | 18.Comp|letion r|
|000008c0| 6f 75 74 69 6e 65 73 20 | 20 2f 20 20 31 39 0d 45 |outines | / 19.E|
|000008d0| 72 72 6f 72 73 20 20 2f | 20 20 31 39 0d 49 6e 69 |rrors /| 19.Ini|
|000008e0| 74 69 61 6c 69 7a 69 6e | 67 20 74 68 65 20 41 70 |tializin|g the Ap|
|000008f0| 70 6c 65 53 65 61 72 63 | 68 20 43 6c 69 65 6e 74 |pleSearc|h Client|
|00000900| 20 4c 69 62 72 61 72 79 | 20 61 6e 64 20 63 6f 6e | Library| and con|
|00000910| 6e 65 63 74 69 6e 67 20 | 74 6f 20 61 20 73 65 72 |necting |to a ser|
|00000920| 76 65 72 20 20 2f 20 20 | 32 30 0d 42 75 69 6c 64 |ver / |20.Build|
|00000930| 69 6e 67 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 |ing your| applica|
|00000940| 74 69 6f 6e 20 20 2f 20 | 20 32 30 0d 43 20 4c 69 |tion / | 20.C Li|
|00000950| 62 72 61 72 79 20 41 50 | 49 20 73 75 6d 6d 61 72 |brary AP|I summar|
|00000960| 79 20 20 2f 20 20 32 31 | 0d 4f 62 6a 65 63 74 20 |y / 21|.Object |
|00000970| 74 79 70 65 73 20 20 2f | 20 20 32 31 0d 54 79 70 |types /| 21.Typ|
|00000980| 65 20 64 65 66 69 6e 69 | 74 69 6f 6e 73 20 20 2f |e defini|tions /|
|00000990| 20 20 32 31 0d 50 61 72 | 61 6d 65 74 65 72 20 62 | 21.Par|ameter b|
|000009a0| 6c 6f 63 6b 73 20 20 2f | 20 20 32 32 0d 41 53 52 |locks /| 22.ASR|
|000009b0| 65 67 69 73 74 65 72 50 | 42 20 20 2f 20 20 32 32 |egisterP|B / 22|
|000009c0| 0d 41 53 53 65 6c 65 63 | 74 53 65 72 76 65 72 50 |.ASSelec|tServerP|
|000009d0| 42 20 20 2f 20 20 32 32 | 0d 41 53 4c 6f 67 6f 6e |B / 22|.ASLogon|
|000009e0| 50 42 20 20 2f 20 20 32 | 32 0d 41 53 4c 6f 67 6f |PB / 2|2.ASLogo|
|000009f0| 66 66 50 42 20 20 2f 20 | 20 32 32 0d 41 53 53 65 |ffPB / | 22.ASSe|
|00000a00| 61 72 63 68 53 65 73 73 | 69 6f 6e 50 42 20 20 2f |archSess|ionPB /|
|00000a10| 20 20 32 33 0d 41 53 45 | 6e 75 6d 65 72 61 74 65 | 23.ASE|numerate|
|00000a20| 50 42 20 20 2f 20 20 32 | 33 0d 41 53 53 65 61 72 |PB / 2|3.ASSear|
|00000a30| 63 68 50 42 20 20 2f 20 | 20 32 33 0d 41 53 47 65 |chPB / | 23.ASGe|
|00000a40| 74 41 72 74 69 63 6c 65 | 49 6e 66 6f 50 42 20 20 |tArticle|InfoPB |
|00000a50| 2f 20 20 32 34 0d 41 53 | 47 65 74 41 72 74 69 63 |/ 24.AS|GetArtic|
|00000a60| 6c 65 54 65 78 74 50 42 | 20 20 2f 20 20 32 34 0d |leTextPB| / 24.|
|00000a70| 41 53 47 65 74 41 72 74 | 69 63 6c 65 4d 61 74 63 |ASGetArt|icleMatc|
|00000a80| 68 65 73 50 42 20 20 2f | 20 20 32 35 0d 41 53 47 |hesPB /| 25.ASG|
|00000a90| 65 74 46 69 6c 65 50 42 | 20 20 2f 20 20 32 35 0d |etFilePB| / 25.|
|00000aa0| 41 53 52 65 70 6f 72 74 | 65 72 50 42 20 20 2f 20 |ASReport|erPB / |
|00000ab0| 20 32 35 0d 44 42 4f 62 | 6a 65 63 74 50 42 20 20 | 25.DBOb|jectPB |
|00000ac0| 2f 20 20 32 36 0d 41 53 | 49 6d 70 6f 72 74 45 78 |/ 26.AS|ImportEx|
|00000ad0| 70 6f 72 74 50 42 20 20 | 2f 20 20 32 36 0d 41 53 |portPB |/ 26.AS|
|00000ae0| 47 65 74 52 65 6c 61 74 | 65 64 54 65 72 6d 73 50 |GetRelat|edTermsP|
|00000af0| 42 20 20 2f 20 20 32 36 | 0d 43 20 41 50 49 20 66 |B / 26|.C API f|
|00000b00| 75 6e 63 74 69 6f 6e 73 | 20 20 2f 20 20 32 37 0d |unctions| / 27.|
|00000b10| 48 6f 75 73 65 6b 65 65 | 70 69 6e 67 20 72 6f 75 |Housekee|ping rou|
|00000b20| 74 69 6e 65 73 20 20 2f | 20 20 32 37 0d 53 65 61 |tines /| 27.Sea|
|00000b30| 72 63 68 20 72 6f 75 74 | 69 6e 65 73 20 20 2f 20 |rch rout|ines / |
|00000b40| 20 32 37 0d 44 61 74 61 | 20 72 65 74 72 69 65 76 | 27.Data| retriev|
|00000b50| 61 6c 20 72 6f 75 74 69 | 6e 65 73 20 20 2f 20 20 |al routi|nes / |
|00000b60| 32 37 0d 52 65 70 6f 72 | 74 65 72 20 72 6f 75 74 |27.Repor|ter rout|
|00000b70| 69 6e 65 73 20 20 2f 20 | 20 32 37 0d 44 42 4f 62 |ines / | 27.DBOb|
|00000b80| 6a 65 63 74 20 72 6f 75 | 74 69 6e 65 73 20 20 2f |ject rou|tines /|
|00000b90| 20 20 32 37 0d 09 34 09 | 54 68 65 20 41 70 70 6c | 27..4.|The Appl|
|00000ba0| 65 53 65 61 72 63 68 20 | 55 70 64 61 74 65 20 46 |eSearch |Update F|
|00000bb0| 69 6c 65 20 46 6f 72 6d | 61 74 20 20 2f 20 20 32 |ile Form|at / 2|
|00000bc0| 39 0d 57 68 61 74 20 69 | 73 20 61 6e 20 75 70 64 |9.What i|s an upd|
|00000bd0| 61 74 65 3f 20 20 2f 20 | 20 33 30 0d 44 61 74 61 |ate? / | 30.Data|
|00000be0| 20 63 6f 6e 74 61 69 6e | 65 72 73 20 20 2f 20 20 | contain|ers / |
|00000bf0| 33 30 0d 44 61 74 61 20 | 63 6f 6e 74 61 69 6e 65 |30.Data |containe|
|00000c00| 72 20 73 74 72 75 63 74 | 75 72 65 20 20 2f 20 20 |r struct|ure / |
|00000c10| 33 31 0d 53 74 61 6e 64 | 61 72 64 20 64 61 74 61 |31.Stand|ard data|
|00000c20| 20 63 6f 6e 74 61 69 6e | 65 72 20 74 79 70 65 73 | contain|er types|
|00000c30| 20 20 2f 20 20 33 31 0d | 41 72 74 69 63 6c 65 73 | / 31.|Articles|
|00000c40| 20 20 2f 20 20 33 31 0d | 41 72 74 69 63 6c 65 20 | / 31.|Article |
|00000c50| 74 79 70 65 20 63 6f 6e | 73 74 61 6e 74 73 20 20 |type con|stants |
|00000c60| 2f 20 20 33 32 0d 43 6f | 6d 70 6f 75 6e 64 20 61 |/ 32.Co|mpound a|
|00000c70| 72 74 69 63 6c 65 73 20 | 20 2f 20 20 33 32 0d 41 |rticles | / 32.A|
|00000c80| 70 70 6c 65 53 65 61 72 | 63 68 20 55 74 69 6c 69 |ppleSear|ch Utili|
|00000c90| 74 79 20 52 6f 75 74 69 | 6e 65 73 20 20 2f 20 20 |ty Routi|nes / |
|00000ca0| 33 32 0d 46 69 6c 65 20 | 75 74 69 6c 69 74 79 20 |32.File |utility |
|00000cb0| 72 6f 75 74 69 6e 65 73 | 20 20 2f 20 20 33 32 0d |routines| / 32.|
|00000cc0| 41 72 74 69 63 6c 65 20 | 72 6f 75 74 69 6e 65 73 |Article |routines|
|00000cd0| 20 20 2f 20 20 33 32 0d | 44 61 74 61 20 63 6f 6e | / 32.|Data con|
|00000ce0| 74 61 69 6e 65 72 20 72 | 6f 75 74 69 6e 65 73 20 |tainer r|outines |
|00000cf0| 20 2f 20 20 33 33 0d 0d | 0d 0d 50 72 65 66 61 63 | / 33..|..Prefac|
|00000d00| 65 0d 41 70 70 6c 65 53 | 65 61 72 63 68 20 69 73 |e.AppleS|earch is|
|00000d10| 20 66 75 6c 6c 2d 74 65 | 78 74 20 73 65 61 72 63 | full-te|xt searc|
|00000d20| 68 2d 61 6e 64 2d 72 65 | 74 72 69 65 76 61 6c 20 |h-and-re|trieval |
|00000d30| 77 6f 72 6b 67 72 6f 75 | 70 20 73 6f 66 74 77 61 |workgrou|p softwa|
|00000d40| 72 65 20 74 68 61 74 20 | 61 6c 6c 6f 77 73 20 75 |re that |allows u|
|00000d50| 73 65 72 73 20 74 6f 20 | 72 65 74 72 69 65 76 65 |sers to |retrieve|
|00000d60| 20 63 75 73 74 6f 6d 69 | 7a 65 64 20 69 6e 66 6f | customi|zed info|
|00000d70| 72 6d 61 74 69 6f 6e 20 | 66 72 6f 6d 20 75 6e 73 |rmation |from uns|
|00000d80| 74 72 75 63 74 75 72 65 | 64 20 64 6f 63 75 6d 65 |tructure|d docume|
|00000d90| 6e 74 20 66 69 6c 65 73 | 20 28 66 6f 72 20 69 6e |nt files| (for in|
|00000da0| 73 74 61 6e 63 65 2c 20 | 63 6f 72 72 65 73 70 6f |stance, |correspo|
|00000db0| 6e 64 65 6e 63 65 2c 20 | 65 6c 65 63 74 72 6f 6e |ndence, |electron|
|00000dc0| 69 63 20 6d 61 69 6c 2c | 20 61 6e 64 20 72 65 70 |ic mail,| and rep|
|00000dd0| 6f 72 74 73 29 20 74 68 | 61 74 20 72 65 73 69 64 |orts) th|at resid|
|00000de0| 65 20 6f 6e 20 61 6e 20 | 41 70 70 6c 65 53 65 61 |e on an |AppleSea|
|00000df0| 72 63 68 20 73 65 72 76 | 65 72 2e 0d 54 68 69 73 |rch serv|er..This|
|00000e00| 20 64 6f 63 75 6d 65 6e | 74 20 69 73 20 61 6e 20 | documen|t is an |
|00000e10| 6f 76 65 72 76 69 65 77 | 20 6f 66 20 74 68 65 20 |overview| of the |
|00000e20| 41 70 70 6c 65 53 65 61 | 72 63 68 20 43 6c 69 65 |AppleSea|rch Clie|
|00000e30| 6e 74 20 44 65 76 65 6c | 6f 70 65 72 d5 73 20 47 |nt Devel|oper.s G|
|00000e40| 75 69 64 65 2c 20 77 68 | 69 63 68 20 69 73 20 69 |uide, wh|ich is i|
|00000e50| 6e 74 65 6e 64 65 64 20 | 66 6f 72 20 64 65 76 65 |ntended |for deve|
|00000e60| 6c 6f 70 65 72 73 20 77 | 68 6f 20 77 61 6e 74 20 |lopers w|ho want |
|00000e70| 74 6f 20 77 72 69 74 65 | 20 74 68 65 69 72 20 6f |to write| their o|
|00000e80| 77 6e 20 63 75 73 74 6f | 6d 20 41 70 70 6c 65 53 |wn custo|m AppleS|
|00000e90| 65 61 72 63 68 20 63 6c | 69 65 6e 74 20 75 73 65 |earch cl|ient use|
|00000ea0| 72 20 69 6e 74 65 72 66 | 61 63 65 20 74 6f 20 74 |r interf|ace to t|
|00000eb0| 68 65 20 41 70 70 6c 65 | 53 65 61 72 63 68 20 73 |he Apple|Search s|
|00000ec0| 65 72 76 65 72 20 6f 72 | 20 77 68 6f 20 77 61 6e |erver or| who wan|
|00000ed0| 74 20 74 6f 20 69 6e 74 | 65 67 72 61 74 65 20 63 |t to int|egrate c|
|00000ee0| 65 72 74 61 69 6e 20 66 | 65 61 74 75 72 65 73 20 |ertain f|eatures |
|00000ef0| 6f 66 20 74 68 65 20 41 | 70 70 6c 65 53 65 61 72 |of the A|ppleSear|
|00000f00| 63 68 20 43 6c 69 65 6e | 74 20 73 6f 66 74 77 61 |ch Clien|t softwa|
|00000f10| 72 65 20 69 6e 74 6f 20 | 74 68 65 69 72 20 6f 77 |re into |their ow|
|00000f20| 6e 20 65 78 69 73 74 69 | 6e 67 20 61 70 70 6c 69 |n existi|ng appli|
|00000f30| 63 61 74 69 6f 6e 73 2e | 0d 57 68 61 74 20 79 6f |cations.|.What yo|
|00000f40| 75 20 6e 65 65 64 20 74 | 6f 20 6b 6e 6f 77 0d 42 |u need t|o know.B|
|00000f50| 65 66 6f 72 65 20 79 6f | 75 20 75 73 65 20 74 68 |efore yo|u use th|
|00000f60| 69 73 20 67 75 69 64 65 | 2c 20 79 6f 75 20 73 68 |is guide|, you sh|
|00000f70| 6f 75 6c 64 20 62 65 20 | 66 61 6d 69 6c 69 61 72 |ould be |familiar|
|00000f80| 20 77 69 74 68 20 74 68 | 65 20 41 70 70 6c 65 53 | with th|e AppleS|
|00000f90| 65 61 72 63 68 20 43 6c | 69 65 6e 74 20 61 6e 64 |earch Cl|ient and|
|00000fa0| 20 53 65 72 76 65 72 20 | 61 70 70 6c 69 63 61 74 | Server |applicat|
|00000fb0| 69 6f 6e 73 2e 20 59 6f | 75 20 73 68 6f 75 6c 64 |ions. Yo|u should|
|00000fc0| 20 62 65 20 66 61 6d 69 | 6c 69 61 72 20 77 69 74 | be fami|liar wit|
|00000fd0| 68 20 6b 65 79 20 66 65 | 61 74 75 72 65 73 20 6f |h key fe|atures o|
|00000fe0| 66 20 74 68 65 20 41 70 | 70 6c 65 53 65 61 72 63 |f the Ap|pleSearc|
|00000ff0| 68 20 43 6c 69 65 6e 74 | 20 73 75 63 68 20 61 73 |h Client| such as|
|00001000| 20 52 65 70 6f 72 74 65 | 72 73 2c 20 61 72 74 69 | Reporte|rs, arti|
|00001010| 63 6c 65 20 72 65 74 72 | 69 65 76 61 6c 2c 20 73 |cle retr|ieval, s|
|00001020| 63 68 65 64 75 6c 65 64 | 20 73 65 61 72 63 68 65 |cheduled| searche|
|00001030| 73 2c 20 61 6e 64 20 75 | 70 64 61 74 65 73 2e 20 |s, and u|pdates. |
|00001040| 59 6f 75 20 73 68 6f 75 | 6c 64 20 61 6c 73 6f 20 |You shou|ld also |
|00001050| 62 65 20 66 61 6d 69 6c | 69 61 72 20 77 69 74 68 |be famil|iar with|
|00001060| 20 41 70 70 6c 65 20 65 | 76 65 6e 74 73 20 61 6e | Apple e|vents an|
|00001070| 64 20 6b 6e 6f 77 20 68 | 6f 77 20 74 6f 20 70 72 |d know h|ow to pr|
|00001080| 6f 67 72 61 6d 20 69 6e | 20 74 68 65 20 4d 61 63 |ogram in| the Mac|
|00001090| 69 6e 74 6f 73 68 20 65 | 6e 76 69 72 6f 6e 6d 65 |intosh e|nvironme|
|000010a0| 6e 74 2e 20 46 6f 72 20 | 69 6e 66 6f 72 6d 61 74 |nt. For |informat|
|000010b0| 69 6f 6e 20 6f 6e 20 74 | 68 65 73 65 20 73 75 62 |ion on t|hese sub|
|000010c0| 6a 65 63 74 73 2c 20 73 | 65 65 20 74 68 65 20 72 |jects, s|ee the r|
|000010d0| 65 66 65 72 65 6e 63 65 | 73 20 69 6e 20 d2 53 75 |eference|s in .Su|
|000010e0| 67 67 65 73 74 65 64 20 | 52 65 61 64 69 6e 67 2c |ggested |Reading,|
|000010f0| d3 20 6c 61 74 65 72 20 | 69 6e 20 74 68 65 20 50 |. later |in the P|
|00001100| 72 65 66 61 63 65 2e 0d | 57 68 61 74 20 74 68 69 |reface..|What thi|
|00001110| 73 20 72 65 66 65 72 65 | 6e 63 65 20 63 6f 6e 74 |s refere|nce cont|
|00001120| 61 69 6e 73 0d 48 65 72 | 65 20 69 73 20 61 20 64 |ains.Her|e is a d|
|00001130| 65 73 63 72 69 70 74 69 | 6f 6e 20 6f 66 20 77 68 |escripti|on of wh|
|00001140| 61 74 20 79 6f 75 d5 6c | 6c 20 66 69 6e 64 20 69 |at you.l|l find i|
|00001150| 6e 20 74 68 69 73 20 6f | 76 65 72 76 69 65 77 3a |n this o|verview:|
|00001160| 0d a5 09 43 68 61 70 74 | 65 72 20 31 2c 20 d2 41 |...Chapt|er 1, .A|
|00001170| 72 63 68 69 74 65 63 74 | 75 72 61 6c 20 4f 76 65 |rchitect|ural Ove|
|00001180| 72 76 69 65 77 2c d3 20 | 70 72 65 73 65 6e 74 73 |rview,. |presents|
|00001190| 20 61 6e 20 6f 76 65 72 | 76 69 65 77 20 6f 66 20 | an over|view of |
|000011a0| 74 68 65 20 41 70 70 6c | 65 53 65 61 72 63 68 20 |the Appl|eSearch |
|000011b0| 63 6c 69 65 6e 74 2f 73 | 65 72 76 65 72 20 61 72 |client/s|erver ar|
|000011c0| 63 68 69 74 65 63 74 75 | 72 65 20 61 6e 64 20 64 |chitectu|re and d|
|000011d0| 65 73 63 72 69 62 65 73 | 20 6b 65 79 20 63 6f 6e |escribes| key con|
|000011e0| 63 65 70 74 73 20 6f 66 | 20 74 68 65 20 41 70 70 |cepts of| the App|
|000011f0| 6c 65 53 65 61 72 63 68 | 20 43 6c 69 65 6e 74 20 |leSearch| Client |
|00001200| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 70 72 6f 67 |applicat|ion prog|
|00001210| 72 61 6d 6d 69 6e 67 20 | 69 6e 74 65 72 66 61 63 |ramming |interfac|
|00001220| 65 20 28 41 50 49 29 2e | 0d a5 09 43 68 61 70 74 |e (API).|...Chapt|
|00001230| 65 72 20 32 2c 20 d2 41 | 70 70 6c 65 20 45 76 65 |er 2, .A|pple Eve|
|00001240| 6e 74 73 20 41 70 70 6c | 69 63 61 74 69 6f 6e 20 |nts Appl|ication |
|00001250| 50 72 6f 67 72 61 6d 6d | 69 6e 67 20 49 6e 74 65 |Programm|ing Inte|
|00001260| 72 66 61 63 65 2c d3 20 | 64 65 73 63 72 69 62 65 |rface,. |describe|
|00001270| 73 20 68 6f 77 20 74 6f | 20 75 73 65 20 74 68 65 |s how to| use the|
|00001280| 20 41 70 70 6c 65 20 65 | 76 65 6e 74 73 20 76 65 | Apple e|vents ve|
|00001290| 72 73 69 6f 6e 20 6f 66 | 20 74 68 65 20 41 50 49 |rsion of| the API|
|000012a0| 20 61 6e 64 20 74 68 65 | 6e 20 67 69 76 65 73 20 | and the|n gives |
|000012b0| 61 20 73 75 6d 6d 61 72 | 79 20 6f 66 20 74 68 65 |a summar|y of the|
|000012c0| 20 41 70 70 6c 65 20 65 | 76 65 6e 74 20 41 50 49 | Apple e|vent API|
|000012d0| 2e 0d a5 09 43 68 61 70 | 74 65 72 20 33 2c 20 d2 |....Chap|ter 3, .|
|000012e0| 43 20 4c 69 62 72 61 72 | 79 20 41 70 70 6c 69 63 |C Librar|y Applic|
|000012f0| 61 74 69 6f 6e 20 50 72 | 6f 67 72 61 6d 6d 69 6e |ation Pr|ogrammin|
|00001300| 67 20 49 6e 74 65 72 66 | 61 63 65 2c d3 20 64 65 |g Interf|ace,. de|
|00001310| 73 63 72 69 62 65 73 20 | 68 6f 77 20 74 6f 20 75 |scribes |how to u|
|00001320| 73 65 20 74 68 65 20 43 | 20 41 50 49 20 61 6e 64 |se the C| API and|
|00001330| 20 74 68 65 6e 20 67 69 | 76 65 73 20 61 20 73 75 | then gi|ves a su|
|00001340| 6d 6d 61 72 79 20 6f 66 | 20 74 68 65 20 43 20 4c |mmary of| the C L|
|00001350| 69 62 72 61 72 79 20 41 | 50 49 2e 0d a5 09 43 68 |ibrary A|PI....Ch|
|00001360| 61 70 74 65 72 20 34 2c | 20 d2 54 68 65 20 41 70 |apter 4,| .The Ap|
|00001370| 70 6c 65 53 65 61 72 63 | 68 20 55 70 64 61 74 65 |pleSearc|h Update|
|00001380| 20 46 69 6c 65 20 46 6f | 72 6d 61 74 2c d3 20 70 | File Fo|rmat,. p|
|00001390| 72 65 73 65 6e 74 73 20 | 61 6e 20 6f 76 65 72 76 |resents |an overv|
|000013a0| 69 65 77 20 6f 66 20 68 | 6f 77 20 74 6f 20 77 72 |iew of h|ow to wr|
|000013b0| 69 74 65 20 73 6f 66 74 | 77 61 72 65 20 74 68 61 |ite soft|ware tha|
|000013c0| 74 20 63 61 6e 20 72 65 | 61 64 20 61 6e 64 20 77 |t can re|ad and w|
|000013d0| 72 69 74 65 20 41 70 70 | 6c 65 53 65 61 72 63 68 |rite App|leSearch|
|000013e0| 2d 63 6f 6d 70 61 74 69 | 62 6c 65 20 75 70 64 61 |-compati|ble upda|
|000013f0| 74 65 73 2e 0d 41 62 6f | 75 74 20 74 68 65 20 41 |tes..Abo|ut the A|
|00001400| 70 70 6c 65 53 65 61 72 | 63 68 20 43 6c 69 65 6e |ppleSear|ch Clien|
|00001410| 74 20 44 65 76 65 6c 6f | 70 65 72 d5 73 20 4b 69 |t Develo|per.s Ki|
|00001420| 74 0d 54 68 65 20 41 70 | 70 6c 65 53 65 61 72 63 |t.The Ap|pleSearc|
|00001430| 68 20 43 6c 69 65 6e 74 | 20 44 65 76 65 6c 6f 70 |h Client| Develop|
|00001440| 65 72 d5 73 20 4b 69 74 | 20 69 6e 63 6c 75 64 65 |er.s Kit| include|
|00001450| 73 3a 0d a5 09 74 68 65 | 20 41 70 70 6c 65 53 65 |s:...the| AppleSe|
|00001460| 61 72 63 68 20 43 6c 69 | 65 6e 74 20 44 65 76 65 |arch Cli|ent Deve|
|00001470| 6c 6f 70 65 72 d5 73 20 | 47 75 69 64 65 0d a5 09 |loper.s |Guide...|
|00001480| 41 70 70 6c 65 53 65 61 | 72 63 68 20 43 6c 69 65 |AppleSea|rch Clie|
|00001490| 6e 74 20 44 65 76 65 6c | 6f 70 65 72 d5 73 20 4b |nt Devel|oper.s K|
|000014a0| 69 74 20 73 6f 66 74 77 | 61 72 65 0d a5 09 61 20 |it softw|are...a |
|000014b0| 43 20 4c 69 62 72 61 72 | 79 20 6f 62 6a 65 63 74 |C Librar|y object|
|000014c0| 20 66 69 6c 65 0d a5 09 | 68 65 61 64 65 72 20 66 | file...|header f|
|000014d0| 69 6c 65 73 20 66 6f 72 | 20 74 68 65 20 43 20 4c |iles for| the C L|
|000014e0| 69 62 72 61 72 79 20 61 | 6e 64 20 41 70 70 6c 65 |ibrary a|nd Apple|
|000014f0| 20 65 76 65 6e 74 73 0d | a5 09 61 6e 20 41 70 70 | events.|..an App|
|00001500| 6c 65 20 65 76 65 6e 74 | 20 74 6f 6f 6c 20 74 68 |le event| tool th|
|00001510| 61 74 20 61 6c 6c 6f 77 | 73 20 79 6f 75 20 74 6f |at allow|s you to|
|00001520| 20 6c 6f 67 20 41 70 70 | 6c 65 20 65 76 65 6e 74 | log App|le event|
|00001530| 20 61 63 74 69 76 69 74 | 79 20 6f 6e 20 79 6f 75 | activit|y on you|
|00001540| 72 20 73 79 73 74 65 6d | 0d a5 09 73 61 6d 70 6c |r system|...sampl|
|00001550| 65 20 63 6f 64 65 20 61 | 6e 64 20 61 20 54 65 61 |e code a|nd a Tea|
|00001560| 63 68 54 65 78 74 20 66 | 69 6c 65 20 74 68 61 74 |chText f|ile that|
|00001570| 20 65 78 70 6c 61 69 6e | 73 20 68 6f 77 20 74 68 | explain|s how th|
|00001580| 65 20 73 61 6d 70 6c 65 | 20 63 6f 64 65 20 66 75 |e sample| code fu|
|00001590| 6e 63 74 69 6f 6e 73 0d | a5 09 74 68 65 20 41 70 |nctions.|..the Ap|
|000015a0| 70 6c 65 53 65 61 72 63 | 68 20 55 70 64 61 74 65 |pleSearc|h Update|
|000015b0| 20 46 69 6c 65 20 46 6f | 72 6d 61 74 20 44 65 76 | File Fo|rmat Dev|
|000015c0| 65 6c 6f 70 65 72 d5 73 | 20 4b 69 74 3b 20 74 68 |eloper.s| Kit; th|
|000015d0| 69 73 20 6b 69 74 20 69 | 6e 63 6c 75 64 65 73 20 |is kit i|ncludes |
|000015e0| 74 68 65 20 41 70 70 6c | 65 53 65 61 72 63 68 20 |the Appl|eSearch |
|000015f0| 55 70 64 61 74 65 20 46 | 69 6c 65 20 46 6f 72 6d |Update F|ile Form|
|00001600| 61 74 20 52 65 66 65 72 | 65 6e 63 65 2c 20 77 68 |at Refer|ence, wh|
|00001610| 69 63 68 20 64 65 73 63 | 72 69 62 65 73 20 74 68 |ich desc|ribes th|
|00001620| 65 20 66 6f 72 6d 61 74 | 20 6f 66 20 41 70 70 6c |e format| of Appl|
|00001630| 65 53 65 61 72 63 68 2d | 67 65 6e 65 72 61 74 65 |eSearch-|generate|
|00001640| 64 20 75 70 64 61 74 65 | 20 64 6f 63 75 6d 65 6e |d update| documen|
|00001650| 74 73 2c 20 61 6e 64 20 | 61 20 73 65 74 20 6f 66 |ts, and |a set of|
|00001660| 20 75 74 69 6c 69 74 79 | 20 72 6f 75 74 69 6e 65 | utility| routine|
|00001670| 73 0d 4e 6f 74 65 3a 20 | 20 49 6e 20 6f 72 64 65 |s.Note: | In orde|
|00001680| 72 20 74 6f 20 74 65 73 | 74 20 61 6e 64 20 75 73 |r to tes|t and us|
|00001690| 65 20 74 68 65 20 41 70 | 70 6c 65 53 65 61 72 63 |e the Ap|pleSearc|
|000016a0| 68 20 63 6c 69 65 6e 74 | 20 63 61 70 61 62 69 6c |h client| capabil|
|000016b0| 69 74 79 2c 20 79 6f 75 | 20 6d 75 73 74 20 70 75 |ity, you| must pu|
|000016c0| 72 63 68 61 73 65 20 74 | 68 65 20 41 70 70 6c 65 |rchase t|he Apple|
|000016d0| 53 65 61 72 63 68 20 53 | 65 72 76 65 72 20 73 6f |Search S|erver so|
|000016e0| 66 74 77 61 72 65 2e 0d | 53 75 67 67 65 73 74 65 |ftware..|Suggeste|
|000016f0| 64 20 72 65 61 64 69 6e | 67 0d 48 65 72 65 20 69 |d readin|g.Here i|
|00001700| 73 20 61 20 6c 69 73 74 | 20 6f 66 20 72 65 66 65 |s a list| of refe|
|00001710| 72 65 6e 63 65 20 6d 61 | 74 65 72 69 61 6c 73 20 |rence ma|terials |
|00001720| 74 68 61 74 20 79 6f 75 | 20 6d 61 79 20 66 69 6e |that you| may fin|
|00001730| 64 20 68 65 6c 70 66 75 | 6c 3a 0d a5 09 41 70 70 |d helpfu|l:...App|
|00001740| 6c 65 53 65 61 72 63 68 | 20 43 6c 69 65 6e 74 20 |leSearch| Client |
|00001750| 44 65 76 65 6c 6f 70 65 | 72 d5 73 20 47 75 69 64 |Develope|r.s Guid|
|00001760| 65 2c 20 69 6e 20 61 64 | 64 69 74 69 6f 6e 20 74 |e, in ad|dition t|
|00001770| 6f 20 74 68 65 20 69 6e | 66 6f 72 6d 61 74 69 6f |o the in|formatio|
|00001780| 6e 20 69 6e 20 74 68 69 | 73 20 6f 76 65 72 76 69 |n in thi|s overvi|
|00001790| 65 77 2c 20 61 6c 73 6f | 20 70 72 65 73 65 6e 74 |ew, also| present|
|000017a0| 73 20 61 20 64 65 74 61 | 69 6c 65 64 20 73 70 65 |s a deta|iled spe|
|000017b0| 63 69 66 69 63 61 74 69 | 6f 6e 20 6f 66 20 65 61 |cificati|on of ea|
|000017c0| 63 68 20 41 70 70 6c 65 | 20 65 76 65 6e 74 20 61 |ch Apple| event a|
|000017d0| 6e 64 20 43 20 66 75 6e | 63 74 69 6f 6e 20 63 61 |nd C fun|ction ca|
|000017e0| 6c 6c 2e 0d a5 09 41 70 | 70 6c 65 53 65 61 72 63 |ll....Ap|pleSearc|
|000017f0| 68 20 55 73 65 72 d5 73 | 20 47 75 69 64 65 20 64 |h User.s| Guide d|
|00001800| 65 73 63 72 69 62 65 73 | 20 68 6f 77 20 74 6f 20 |escribes| how to |
|00001810| 75 73 65 20 74 68 65 20 | 41 70 70 6c 65 53 65 61 |use the |AppleSea|
|00001820| 72 63 68 20 43 6c 69 65 | 6e 74 20 74 6f 20 73 65 |rch Clie|nt to se|
|00001830| 61 72 63 68 20 61 6e 64 | 20 72 65 74 72 69 65 76 |arch and| retriev|
|00001840| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 2e 0d a5 |e inform|ation...|
|00001850| 09 41 70 70 6c 65 53 65 | 61 72 63 68 20 41 64 6d |.AppleSe|arch Adm|
|00001860| 69 6e 69 73 74 72 61 74 | 6f 72 d5 73 20 47 75 69 |inistrat|or.s Gui|
|00001870| 64 65 20 64 65 73 63 72 | 69 62 65 73 20 68 6f 77 |de descr|ibes how|
|00001880| 20 74 6f 20 73 65 74 20 | 75 70 20 61 6e 64 20 6d | to set |up and m|
|00001890| 61 69 6e 74 61 69 6e 20 | 61 6e 20 41 70 70 6c 65 |aintain |an Apple|
|000018a0| 53 65 61 72 63 68 20 53 | 65 72 76 65 72 2e 0d a5 |Search S|erver...|
|000018b0| 09 41 70 70 6c 65 53 65 | 61 72 63 68 20 55 70 64 |.AppleSe|arch Upd|
|000018c0| 61 74 65 20 46 69 6c 65 | 20 46 6f 72 6d 61 74 20 |ate File| Format |
|000018d0| 52 65 66 65 72 65 6e 63 | 65 20 64 65 73 63 72 69 |Referenc|e descri|
|000018e0| 62 65 73 20 74 68 65 20 | 66 6f 72 6d 61 74 20 6f |bes the |format o|
|000018f0| 66 20 41 70 70 6c 65 53 | 65 61 72 63 68 2d 67 65 |f AppleS|earch-ge|
|00001900| 6e 65 72 61 74 65 64 20 | 75 70 64 61 74 65 20 64 |nerated |update d|
|00001910| 6f 63 75 6d 65 6e 74 73 | 2e 0d a5 09 49 6e 73 69 |ocuments|....Insi|
|00001920| 64 65 20 4d 61 63 69 6e | 74 6f 73 68 3a 20 49 6e |de Macin|tosh: In|
|00001930| 74 65 72 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 43 |terappli|cation C|
|00001940| 6f 6d 6d 75 6e 69 63 61 | 74 69 6f 6e 20 70 72 6f |ommunica|tion pro|
|00001950| 76 69 64 65 73 20 61 20 | 63 6f 6d 70 6c 65 74 65 |vides a |complete|
|00001960| 20 64 65 73 63 72 69 70 | 74 69 6f 6e 20 6f 66 20 | descrip|tion of |
|00001970| 41 70 70 6c 65 20 65 76 | 65 6e 74 73 2c 20 65 78 |Apple ev|ents, ex|
|00001980| 70 6c 61 69 6e 73 20 68 | 6f 77 20 74 6f 20 73 65 |plains h|ow to se|
|00001990| 6e 64 20 61 6e 64 20 72 | 65 63 65 69 76 65 20 41 |nd and r|eceive A|
|000019a0| 70 70 6c 65 20 65 76 65 | 6e 74 73 2c 20 61 6e 64 |pple eve|nts, and|
|000019b0| 20 69 6e 63 6c 75 64 65 | 73 20 72 65 66 65 72 65 | include|s refere|
|000019c0| 6e 63 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |nce info|rmation |
|000019d0| 66 6f 72 20 61 6c 6c 20 | 41 70 70 6c 65 20 45 76 |for all |Apple Ev|
|000019e0| 65 6e 74 20 4d 61 6e 61 | 67 65 72 20 72 6f 75 74 |ent Mana|ger rout|
|000019f0| 69 6e 65 73 2e 20 0d a5 | 09 49 6e 73 69 64 65 20 |ines. ..|.Inside |
|00001a00| 4d 61 63 69 6e 74 6f 73 | 68 3a 20 50 72 6f 63 65 |Macintos|h: Proce|
|00001a10| 73 73 65 73 20 70 72 6f | 76 69 64 65 73 20 62 61 |sses pro|vides ba|
|00001a20| 63 6b 67 72 6f 75 6e 64 | 20 69 6e 66 6f 72 6d 61 |ckground| informa|
|00001a30| 74 69 6f 6e 20 6f 6e 20 | 74 68 65 20 70 61 72 74 |tion on |the part|
|00001a40| 73 20 6f 66 20 74 68 65 | 20 4d 61 63 69 6e 74 6f |s of the| Macinto|
|00001a50| 73 68 20 4f 70 65 72 61 | 74 69 6e 67 20 53 79 73 |sh Opera|ting Sys|
|00001a60| 74 65 6d 20 74 68 61 74 | 20 61 6c 6c 6f 77 20 79 |tem that| allow y|
|00001a70| 6f 75 20 74 6f 20 6d 61 | 6e 61 67 65 20 70 72 6f |ou to ma|nage pro|
|00001a80| 63 65 73 73 65 73 20 61 | 6e 64 20 74 61 73 6b 73 |cesses a|nd tasks|
|00001a90| 2e 0d 4c 69 63 65 6e 73 | 69 6e 67 20 69 6e 66 6f |..Licens|ing info|
|00001aa0| 72 6d 61 74 69 6f 6e 0d | 4c 69 63 65 6e 73 69 6e |rmation.|Licensin|
|00001ab0| 67 20 72 65 73 74 72 69 | 63 74 69 6f 6e 73 20 6d |g restri|ctions m|
|00001ac0| 61 79 20 61 70 70 6c 79 | 20 74 6f 20 79 6f 75 72 |ay apply| to your|
|00001ad0| 20 75 73 65 20 6f 66 20 | 61 70 70 6c 69 63 61 74 | use of |applicat|
|00001ae0| 69 6f 6e 73 20 64 65 72 | 69 76 65 64 20 66 72 6f |ions der|ived fro|
|00001af0| 6d 20 6f 72 20 69 6e 63 | 6f 72 70 6f 72 61 74 69 |m or inc|orporati|
|00001b00| 6e 67 20 41 70 70 6c 65 | 53 65 61 72 63 68 20 73 |ng Apple|Search s|
|00001b10| 6f 66 74 77 61 72 65 2e | 20 46 6f 72 20 69 6e 66 |oftware.| For inf|
|00001b20| 6f 72 6d 61 74 69 6f 6e | 20 61 62 6f 75 74 20 6c |ormation| about l|
|00001b30| 69 63 65 6e 73 69 6e 67 | 2c 20 70 6c 65 61 73 65 |icensing|, please|
|00001b40| 20 63 6f 6e 74 61 63 74 | 3a 0d 53 6f 66 74 77 61 | contact|:.Softwa|
|00001b50| 72 65 20 4c 69 63 65 6e | 73 69 6e 67 20 44 65 70 |re Licen|sing Dep|
|00001b60| 61 72 74 6d 65 6e 74 0d | 41 70 70 6c 65 20 43 6f |artment.|Apple Co|
|00001b70| 6d 70 75 74 65 72 2c 20 | 49 6e 63 2e 0d 32 30 35 |mputer, |Inc..205|
|00001b80| 32 35 20 4d 61 72 69 61 | 6e 69 20 41 76 65 6e 75 |25 Maria|ni Avenu|
|00001b90| 65 2c 20 4d 2f 53 20 33 | 38 2d 49 0d 43 75 70 65 |e, M/S 3|8-I.Cupe|
|00001ba0| 72 74 69 6e 6f 2c 20 43 | 41 20 39 35 30 31 34 20 |rtino, C|A 95014 |
|00001bb0| 55 2e 53 2e 41 0d 54 65 | 6c 65 70 68 6f 6e 65 3a |U.S.A.Te|lephone:|
|00001bc0| 20 20 28 34 30 38 29 39 | 37 34 2d 34 36 36 37 0d | (408)9|74-4667.|
|00001bd0| 41 70 70 6c 65 4c 69 6e | 6b 20 61 64 64 72 65 73 |AppleLin|k addres|
|00001be0| 73 3a 20 20 53 57 2e 4c | 49 43 45 4e 53 45 0d 0d |s: SW.L|ICENSE..|
|00001bf0| 0d 31 09 41 72 63 68 69 | 74 65 63 74 75 72 61 6c |.1.Archi|tectural|
|00001c00| 20 4f 76 65 72 76 69 65 | 77 0d 54 68 69 73 20 63 | Overvie|w.This c|
|00001c10| 68 61 70 74 65 72 20 70 | 72 65 73 65 6e 74 73 20 |hapter p|resents |
|00001c20| 61 6e 20 6f 76 65 72 76 | 69 65 77 20 6f 66 20 74 |an overv|iew of t|
|00001c30| 68 65 20 41 70 70 6c 65 | 53 65 61 72 63 68 20 63 |he Apple|Search c|
|00001c40| 6c 69 65 6e 74 2f 73 65 | 72 76 65 72 20 61 72 63 |lient/se|rver arc|
|00001c50| 68 69 74 65 63 74 75 72 | 65 20 61 6e 64 20 64 65 |hitectur|e and de|
|00001c60| 73 63 72 69 62 65 73 20 | 6b 65 79 20 63 6f 6e 63 |scribes |key conc|
|00001c70| 65 70 74 73 20 72 65 71 | 75 69 72 65 64 20 74 6f |epts req|uired to|
|00001c80| 20 75 73 65 20 74 68 65 | 20 41 70 70 6c 65 53 65 | use the| AppleSe|
|00001c90| 61 72 63 68 20 43 6c 69 | 65 6e 74 20 61 70 70 6c |arch Cli|ent appl|
|00001ca0| 69 63 61 74 69 6f 6e 20 | 70 72 6f 67 72 61 6d 6d |ication |programm|
|00001cb0| 69 6e 67 20 69 6e 74 65 | 72 66 61 63 65 20 28 41 |ing inte|rface (A|
|00001cc0| 50 49 29 2e 0d 41 70 70 | 6c 65 53 65 61 72 63 68 |PI)..App|leSearch|
|00001cd0| 20 73 6f 66 74 77 61 72 | 65 20 63 6f 6d 70 6f 6e | softwar|e compon|
|00001ce0| 65 6e 74 73 0d 54 68 65 | 20 41 70 70 6c 65 53 65 |ents.The| AppleSe|
|00001cf0| 61 72 63 68 20 43 6c 69 | 65 6e 74 20 63 6f 6e 73 |arch Cli|ent cons|
|00001d00| 69 73 74 73 20 6f 66 20 | 74 68 72 65 65 20 63 6f |ists of |three co|
|00001d10| 6d 70 6f 6e 65 6e 74 73 | 3a 0d a5 09 41 70 70 6c |mponents|:...Appl|
|00001d20| 65 53 65 61 72 63 68 20 | 55 73 65 72 20 49 6e 74 |eSearch |User Int|
|00001d30| 65 72 66 61 63 65 20 41 | 70 70 6c 69 63 61 74 69 |erface A|pplicati|
|00001d40| 6f 6e 0d a5 09 41 70 70 | 6c 65 53 65 61 72 63 68 |on...App|leSearch|
|00001d50| 20 43 6f 6d 6d 75 6e 69 | 63 61 74 69 6f 6e 20 45 | Communi|cation E|
|00001d60| 78 74 65 6e 73 69 6f 6e | d1 74 68 65 20 62 61 63 |xtension|.the bac|
|00001d70| 6b 67 72 6f 75 6e 64 20 | 74 61 73 6b 20 61 70 70 |kground |task app|
|00001d80| 6c 69 63 61 74 69 6f 6e | 0d a5 09 41 70 70 6c 65 |lication|...Apple|
|00001d90| 53 65 61 72 63 68 20 41 | 75 74 68 65 6e 74 69 63 |Search A|uthentic|
|00001da0| 61 74 69 6f 6e 20 45 78 | 74 65 6e 73 69 6f 6e d1 |ation Ex|tension.|
|00001db0| 74 68 65 20 6c 6f 67 2d | 6f 6e 20 61 70 70 6c 69 |the log-|on appli|
|00001dc0| 63 61 74 69 6f 6e 0d 54 | 68 65 20 66 6f 6c 6c 6f |cation.T|he follo|
|00001dd0| 77 69 6e 67 20 64 69 61 | 67 72 61 6d 20 73 68 6f |wing dia|gram sho|
|00001de0| 77 73 20 74 68 65 20 72 | 65 6c 61 74 69 6f 6e 73 |ws the r|elations|
|00001df0| 68 69 70 73 20 61 6d 6f | 6e 67 20 74 68 65 73 65 |hips amo|ng these|
|00001e00| 20 63 6f 6d 70 6f 6e 65 | 6e 74 73 20 61 6e 64 20 | compone|nts and |
|00001e10| 62 65 74 77 65 65 6e 20 | 74 68 65 20 63 6c 69 65 |between |the clie|
|00001e20| 6e 74 20 61 6e 64 20 74 | 68 65 20 41 70 70 6c 65 |nt and t|he Apple|
|00001e30| 53 65 61 72 63 68 20 53 | 65 72 76 65 72 20 73 6f |Search S|erver so|
|00001e40| 66 74 77 61 72 65 2e 0d | 54 68 65 20 41 70 70 6c |ftware..|The Appl|
|00001e50| 65 53 65 61 72 63 68 20 | 55 73 65 72 20 49 6e 74 |eSearch |User Int|
|00001e60| 65 72 66 61 63 65 20 41 | 70 70 6c 69 63 61 74 69 |erface A|pplicati|
|00001e70| 6f 6e 20 69 73 20 61 20 | 4d 61 63 41 70 70 20 33 |on is a |MacApp 3|
|00001e80| 2e 30 d0 62 61 73 65 64 | 20 4d 61 63 69 6e 74 6f |.0.based| Macinto|
|00001e90| 73 68 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 74 |sh appli|cation t|
|00001ea0| 68 61 74 20 70 72 6f 76 | 69 64 65 73 20 74 68 65 |hat prov|ides the|
|00001eb0| 20 75 73 65 72 20 69 6e | 74 65 72 66 61 63 65 20 | user in|terface |
|00001ec0| 66 75 6e 63 74 69 6f 6e | 61 6c 69 74 79 20 6f 66 |function|ality of|
|00001ed0| 20 74 68 65 20 63 6c 69 | 65 6e 74 2e 20 54 68 69 | the cli|ent. Thi|
|00001ee0| 73 20 69 73 20 74 68 65 | 20 6f 6e 6c 79 20 6f 6e |s is the| only on|
|00001ef0| 65 20 6f 66 20 74 68 65 | 20 74 68 72 65 65 20 63 |e of the| three c|
|00001f00| 6f 6d 70 6f 6e 65 6e 74 | 73 20 74 68 61 74 20 63 |omponent|s that c|
|00001f10| 61 6e 20 62 65 20 6c 61 | 75 6e 63 68 65 64 20 62 |an be la|unched b|
|00001f20| 79 20 74 68 65 20 75 73 | 65 72 2e 0d 54 68 65 20 |y the us|er..The |
|00001f30| 41 70 70 6c 65 53 65 61 | 72 63 68 20 43 6f 6d 6d |AppleSea|rch Comm|
|00001f40| 75 6e 69 63 61 74 69 6f | 6e 20 45 78 74 65 6e 73 |unicatio|n Extens|
|00001f50| 69 6f 6e 20 68 61 73 20 | 6e 6f 20 6d 65 6e 75 73 |ion has |no menus|
|00001f60| 20 61 6e 64 20 63 61 6e | 6e 6f 74 20 64 69 73 70 | and can|not disp|
|00001f70| 6c 61 79 20 61 6e 79 20 | 77 69 6e 64 6f 77 73 2e |lay any |windows.|
|00001f80| 20 42 65 63 61 75 73 65 | 20 74 68 69 73 20 65 78 | Because| this ex|
|00001f90| 74 65 6e 73 69 6f 6e 20 | 72 75 6e 73 20 69 6e 20 |tension |runs in |
|00001fa0| 74 68 65 20 62 61 63 6b | 67 72 6f 75 6e 64 2c 20 |the back|ground, |
|00001fb0| 67 65 6e 65 72 61 74 69 | 6e 67 20 75 70 64 61 74 |generati|ng updat|
|00001fc0| 65 20 66 69 6c 65 73 20 | 61 74 20 64 65 6c 69 76 |e files |at deliv|
|00001fd0| 65 72 79 20 74 69 6d 65 | 2c 20 74 68 65 20 75 73 |ery time|, the us|
|00001fe0| 65 72 20 64 6f 65 73 20 | 6e 6f 74 20 68 61 76 65 |er does |not have|
|00001ff0| 20 74 6f 20 6b 65 65 70 | 20 74 68 65 20 75 73 65 | to keep| the use|
|00002000| 72 20 69 6e 74 65 72 66 | 61 63 65 20 61 70 70 6c |r interf|ace appl|
|00002010| 69 63 61 74 69 6f 6e 20 | 72 75 6e 6e 69 6e 67 20 |ication |running |
|00002020| 69 6e 20 6f 72 64 65 72 | 20 74 6f 20 72 65 63 65 |in order| to rece|
|00002030| 69 76 65 20 75 70 64 61 | 74 65 73 2e 20 54 68 65 |ive upda|tes. The|
|00002040| 20 41 70 70 6c 65 53 65 | 61 72 63 68 20 43 6f 6d | AppleSe|arch Com|
|00002050| 6d 75 6e 69 63 61 74 69 | 6f 6e 20 45 78 74 65 6e |municati|on Exten|
|00002060| 73 69 6f 6e 20 69 73 20 | 72 65 73 70 6f 6e 73 69 |sion is |responsi|
|00002070| 62 6c 65 20 66 6f 72 20 | 63 6f 6d 6d 75 6e 69 63 |ble for |communic|
|00002080| 61 74 69 6e 67 20 77 69 | 74 68 20 74 68 65 20 41 |ating wi|th the A|
|00002090| 70 70 6c 65 53 65 61 72 | 63 68 20 53 65 72 76 65 |ppleSear|ch Serve|
|000020a0| 72 3b 20 74 68 75 73 20 | 74 68 65 20 75 73 65 72 |r; thus |the user|
|000020b0| 20 63 61 6e 20 70 65 72 | 66 6f 72 6d 20 6f 70 65 | can per|form ope|
|000020c0| 72 61 74 69 6f 6e 73 20 | 73 75 63 68 20 61 73 20 |rations |such as |
|000020d0| 52 65 70 6f 72 74 65 72 | 20 63 72 65 61 74 69 6f |Reporter| creatio|
|000020e0| 6e 20 61 6e 64 20 61 72 | 74 69 63 6c 65 20 72 65 |n and ar|ticle re|
|000020f0| 74 72 69 65 76 61 6c 20 | 6f 6e 6c 79 20 69 66 20 |trieval |only if |
|00002100| 69 74 20 69 73 20 72 75 | 6e 6e 69 6e 67 20 28 69 |it is ru|nning (i|
|00002110| 66 20 69 74 20 69 73 20 | 6e 6f 74 20 72 75 6e 6e |f it is |not runn|
|00002120| 69 6e 67 2c 20 74 68 65 | 20 75 73 65 72 20 63 61 |ing, the| user ca|
|00002130| 6e 20 6f 6e 6c 79 20 6f | 70 65 6e 20 61 6e 64 20 |n only o|pen and |
|00002140| 76 69 65 77 20 65 78 69 | 73 74 69 6e 67 20 61 72 |view exi|sting ar|
|00002150| 74 69 63 6c 65 20 61 6e | 64 20 75 70 64 61 74 65 |ticle an|d update|
|00002160| 20 66 69 6c 65 73 20 6f | 6e 20 74 68 65 20 6d 6f | files o|n the mo|
|00002170| 75 6e 74 65 64 20 76 6f | 6c 75 6d 65 73 29 2e 20 |unted vo|lumes). |
|00002180| 54 68 65 20 41 70 70 6c | 65 53 65 61 72 63 68 20 |The Appl|eSearch |
|00002190| 43 6f 6d 6d 75 6e 69 63 | 61 74 69 6f 6e 20 45 78 |Communic|ation Ex|
|000021a0| 74 65 6e 73 69 6f 6e 20 | 69 73 20 73 74 6f 72 65 |tension |is store|
|000021b0| 64 20 69 6e 20 74 68 65 | 20 75 73 65 72 d5 73 20 |d in the| user.s |
|000021c0| 45 78 74 65 6e 73 69 6f | 6e 73 20 66 6f 6c 64 65 |Extensio|ns folde|
|000021d0| 72 2e 0d 54 68 65 20 41 | 70 70 6c 65 53 65 61 72 |r..The A|ppleSear|
|000021e0| 63 68 20 41 75 74 68 65 | 6e 74 69 63 61 74 69 6f |ch Authe|nticatio|
|000021f0| 6e 20 45 78 74 65 6e 73 | 69 6f 6e 20 62 72 69 6e |n Extens|ion brin|
|00002200| 67 73 20 75 70 20 61 20 | 63 6f 6e 6e 65 63 74 69 |gs up a |connecti|
|00002210| 6f 6e 20 64 69 61 6c 6f | 67 20 62 6f 78 20 74 68 |on dialo|g box th|
|00002220| 61 74 20 61 6c 6c 6f 77 | 73 20 74 68 65 20 75 73 |at allow|s the us|
|00002230| 65 72 20 74 6f 20 6f 70 | 65 6e 20 61 20 73 65 73 |er to op|en a ses|
|00002240| 73 69 6f 6e 20 77 69 74 | 68 20 61 6e 20 41 70 70 |sion wit|h an App|
|00002250| 6c 65 53 65 61 72 63 68 | 20 73 65 72 76 65 72 2e |leSearch| server.|
|00002260| 20 4f 6e 63 65 20 74 68 | 65 20 75 73 65 72 20 63 | Once th|e user c|
|00002270| 6f 6d 70 6c 65 74 65 73 | 20 74 68 65 20 6c 6f 67 |ompletes| the log|
|00002280| 2d 6f 6e 20 70 72 6f 63 | 65 73 73 2c 20 74 68 65 |-on proc|ess, the|
|00002290| 20 41 70 70 6c 65 53 65 | 61 72 63 68 20 41 75 74 | AppleSe|arch Aut|
|000022a0| 68 65 6e 74 69 63 61 74 | 69 6f 6e 20 45 78 74 65 |henticat|ion Exte|
|000022b0| 6e 73 69 6f 6e 20 73 65 | 6e 64 73 20 73 65 73 73 |nsion se|nds sess|
|000022c0| 69 6f 6e 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ion info|rmation |
|000022d0| 74 6f 20 74 68 65 20 41 | 70 70 6c 65 53 65 61 72 |to the A|ppleSear|
|000022e0| 63 68 20 43 6f 6d 6d 75 | 6e 69 63 61 74 69 6f 6e |ch Commu|nication|
|000022f0| 20 45 78 74 65 6e 73 69 | 6f 6e 20 61 6e 64 20 74 | Extensi|on and t|
|00002300| 68 65 6e 20 71 75 69 74 | 73 2e 20 54 68 65 20 41 |hen quit|s. The A|
|00002310| 70 70 6c 65 53 65 61 72 | 63 68 20 41 75 74 68 65 |ppleSear|ch Authe|
|00002320| 6e 74 69 63 61 74 69 6f | 6e 20 45 78 74 65 6e 73 |nticatio|n Extens|
|00002330| 69 6f 6e 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |ion appl|ication |
|00002340| 69 73 20 73 74 6f 72 65 | 64 20 69 6e 20 74 68 65 |is store|d in the|
|00002350| 20 75 73 65 72 d5 73 20 | 45 78 74 65 6e 73 69 6f | user.s |Extensio|
|00002360| 6e 73 20 66 6f 6c 64 65 | 72 2e 0d 41 6c 6c 20 74 |ns folde|r..All t|
|00002370| 68 72 65 65 20 63 6f 6d | 70 6f 6e 65 6e 74 73 20 |hree com|ponents |
|00002380| 63 6f 6d 6d 75 6e 69 63 | 61 74 65 20 77 69 74 68 |communic|ate with|
|00002390| 20 65 61 63 68 20 6f 74 | 68 65 72 20 62 79 20 77 | each ot|her by w|
|000023a0| 61 79 20 6f 66 20 41 70 | 70 6c 65 20 65 76 65 6e |ay of Ap|ple even|
|000023b0| 74 73 2e 20 54 68 65 20 | 41 70 70 6c 65 53 65 61 |ts. The |AppleSea|
|000023c0| 72 63 68 20 43 6f 6d 6d | 75 6e 69 63 61 74 69 6f |rch Comm|unicatio|
|000023d0| 6e 20 45 78 74 65 6e 73 | 69 6f 6e 20 61 6e 64 20 |n Extens|ion and |
|000023e0| 74 68 65 20 41 70 70 6c | 65 53 65 61 72 63 68 20 |the Appl|eSearch |
|000023f0| 53 65 72 76 65 72 20 63 | 6f 6d 6d 75 6e 69 63 61 |Server c|ommunica|
|00002400| 74 65 20 75 73 69 6e 67 | 20 74 68 65 20 41 70 70 |te using| the App|
|00002410| 6c 65 53 65 61 72 63 68 | 20 43 6c 69 65 6e 74 2f |leSearch| Client/|
|00002420| 53 65 72 76 65 72 20 70 | 72 6f 74 6f 63 6f 6c 20 |Server p|rotocol |
|00002430| 28 61 6e 20 41 70 70 6c | 65 20 70 72 6f 70 72 69 |(an Appl|e propri|
|00002440| 65 74 61 72 79 20 70 72 | 6f 74 6f 63 6f 6c 29 2e |etary pr|otocol).|
|00002450| 20 46 6f 72 20 69 6e 73 | 74 61 6e 63 65 2c 20 77 | For ins|tance, w|
|00002460| 68 65 6e 20 61 20 75 73 | 65 72 20 64 6f 75 62 6c |hen a us|er doubl|
|00002470| 65 2d 63 6c 69 63 6b 73 | 20 61 20 52 65 70 6f 72 |e-clicks| a Repor|
|00002480| 74 65 72 20 69 6e 20 74 | 68 65 20 41 70 70 6c 65 |ter in t|he Apple|
|00002490| 53 65 61 72 63 68 20 77 | 69 6e 64 6f 77 20 75 73 |Search w|indow us|
|000024a0| 69 6e 67 20 74 68 65 20 | 63 6c 69 65 6e 74 20 61 |ing the |client a|
|000024b0| 70 70 6c 69 63 61 74 69 | 6f 6e 0d a5 09 74 68 65 |pplicati|on...the|
|000024c0| 20 41 70 70 6c 65 53 65 | 61 72 63 68 20 43 6c 69 | AppleSe|arch Cli|
|000024d0| 65 6e 74 20 73 65 6e 64 | 73 20 61 6e 20 41 70 70 |ent send|s an App|
|000024e0| 6c 65 20 65 76 65 6e 74 | 20 74 6f 20 74 68 65 20 |le event| to the |
|000024f0| 41 70 70 6c 65 53 65 61 | 72 63 68 20 43 6f 6d 6d |AppleSea|rch Comm|
|00002500| 75 6e 69 63 61 74 69 6f | 6e 20 45 78 74 65 6e 73 |unicatio|n Extens|
|00002510| 69 6f 6e 20 61 73 6b 69 | 6e 67 20 66 6f 72 20 69 |ion aski|ng for i|
|00002520| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 6f 6e 20 74 68 |nformati|on on th|
|00002530| 61 74 20 52 65 70 6f 72 | 74 65 72 0d a5 09 74 68 |at Repor|ter...th|
|00002540| 65 20 41 70 70 6c 65 53 | 65 61 72 63 68 20 43 6f |e AppleS|earch Co|
|00002550| 6d 6d 75 6e 69 63 61 74 | 69 6f 6e 20 45 78 74 65 |mmunicat|ion Exte|
|00002560| 6e 73 69 6f 6e 20 72 65 | 74 72 69 65 76 65 73 20 |nsion re|trieves |
|00002570| 74 68 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |the info|rmation |
|00002580| 66 72 6f 6d 20 74 68 65 | 20 73 65 72 76 65 72 20 |from the| server |
|00002590| 75 73 69 6e 67 20 74 68 | 65 20 41 70 70 6c 65 53 |using th|e AppleS|
|000025a0| 65 61 72 63 68 20 43 6c | 69 65 6e 74 2f 53 65 72 |earch Cl|ient/Ser|
|000025b0| 76 65 72 20 70 72 6f 74 | 6f 63 6f 6c 0d a5 09 74 |ver prot|ocol...t|
|000025c0| 68 65 20 41 70 70 6c 65 | 53 65 61 72 63 68 20 43 |he Apple|Search C|
|000025d0| 6f 6d 6d 75 6e 69 63 61 | 74 69 6f 6e 20 45 78 74 |ommunica|tion Ext|
|000025e0| 65 6e 73 69 6f 6e 20 70 | 61 73 73 65 73 20 74 68 |ension p|asses th|
|000025f0| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 74 6f |e inform|ation to|
|00002600| 20 74 68 65 20 41 70 70 | 6c 65 53 65 61 72 63 68 | the App|leSearch|
|00002610| 20 43 6c 69 65 6e 74 20 | 69 6e 20 61 20 72 65 70 | Client |in a rep|
|00002620| 6c 79 20 65 76 65 6e 74 | 20 74 6f 20 74 68 65 20 |ly event| to the |
|00002630| 6f 72 69 67 69 6e 61 6c | 20 72 65 71 75 65 73 74 |original| request|
|00002640| 0d a5 09 74 68 65 20 41 | 70 70 6c 65 53 65 61 72 |...the A|ppleSear|
|00002650| 63 68 20 43 6c 69 65 6e | 74 20 64 69 73 70 6c 61 |ch Clien|t displa|
|00002660| 79 73 20 74 68 65 20 52 | 65 70 6f 72 74 65 72 20 |ys the R|eporter |
|00002670| 77 69 6e 64 6f 77 2c 20 | 77 68 69 63 68 20 63 6f |window, |which co|
|00002680| 6e 74 61 69 6e 73 20 69 | 6e 66 6f 72 6d 61 74 69 |ntains i|nformati|
|00002690| 6f 6e 20 61 62 6f 75 74 | 20 74 68 61 74 20 52 65 |on about| that Re|
|000026a0| 70 6f 72 74 65 72 0d 57 | 72 69 74 69 6e 67 20 79 |porter.W|riting y|
|000026b0| 6f 75 72 20 6f 77 6e 20 | 63 6c 69 65 6e 74 20 61 |our own |client a|
|000026c0| 70 70 6c 69 63 61 74 69 | 6f 6e 0d 59 6f 75 20 63 |pplicati|on.You c|
|000026d0| 61 6e 20 77 72 69 74 65 | 20 79 6f 75 72 20 6f 77 |an write| your ow|
|000026e0| 6e 20 63 6c 69 65 6e 74 | 20 61 70 70 6c 69 63 61 |n client| applica|
|000026f0| 74 69 6f 6e 20 74 6f 20 | 61 63 63 65 73 73 20 41 |tion to |access A|
|00002700| 70 70 6c 65 53 65 61 72 | 63 68 20 73 65 72 76 65 |ppleSear|ch serve|
|00002710| 72 73 20 69 6e 20 6f 6e | 65 20 6f 66 20 74 77 6f |rs in on|e of two|
|00002720| 20 77 61 79 73 3a 0d a5 | 09 59 6f 75 20 63 61 6e | ways:..|.You can|
|00002730| 20 77 72 69 74 65 20 61 | 6e 20 61 70 70 6c 69 63 | write a|n applic|
|00002740| 61 74 69 6f 6e 20 74 68 | 61 74 20 72 65 70 6c 61 |ation th|at repla|
|00002750| 63 65 73 20 74 68 65 20 | 41 70 70 6c 65 53 65 61 |ces the |AppleSea|
|00002760| 72 63 68 20 55 73 65 72 | 20 49 6e 74 65 72 66 61 |rch User| Interfa|
|00002770| 63 65 20 41 70 70 6c 69 | 63 61 74 69 6f 6e 20 70 |ce Appli|cation p|
|00002780| 72 6f 76 69 64 65 64 20 | 62 79 20 41 70 70 6c 65 |rovided |by Apple|
|00002790| 2e 20 49 6e 20 74 68 69 | 73 20 63 61 73 65 2c 20 |. In thi|s case, |
|000027a0| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|000027b0| 20 6d 75 73 74 20 75 73 | 65 20 41 70 70 6c 65 20 | must us|e Apple |
|000027c0| 65 76 65 6e 74 73 20 74 | 6f 20 63 6f 6d 6d 75 6e |events t|o commun|
|000027d0| 69 63 61 74 65 20 77 69 | 74 68 20 74 68 65 20 41 |icate wi|th the A|
|000027e0| 70 70 6c 65 53 65 61 72 | 63 68 20 43 6f 6d 6d 75 |ppleSear|ch Commu|
|000027f0| 6e 69 63 61 74 69 6f 6e | 20 45 78 74 65 6e 73 69 |nication| Extensi|
|00002800| 6f 6e 2c 20 77 68 69 63 | 68 20 69 6e 20 74 75 72 |on, whic|h in tur|
|00002810| 6e 20 63 6f 6d 6d 75 6e | 69 63 61 74 65 73 20 77 |n commun|icates w|
|00002820| 69 74 68 20 74 68 65 20 | 41 70 70 6c 65 53 65 61 |ith the |AppleSea|
|00002830| 72 63 68 20 53 65 72 76 | 65 72 2e 20 0d a5 09 59 |rch Serv|er. ...Y|
|00002840| 6f 75 20 63 61 6e 20 61 | 6c 73 6f 20 6c 69 6e 6b |ou can a|lso link|
|00002850| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|00002860| 6e 20 64 69 72 65 63 74 | 6c 79 20 74 6f 20 74 68 |n direct|ly to th|
|00002870| 65 20 41 70 70 6c 65 53 | 65 61 72 63 68 20 43 6c |e AppleS|earch Cl|
|00002880| 69 65 6e 74 20 4c 69 62 | 72 61 72 79 2c 20 61 20 |ient Lib|rary, a |
|00002890| 70 61 72 74 20 6f 66 20 | 74 68 65 20 41 70 70 6c |part of |the Appl|
|000028a0| 65 53 65 61 72 63 68 20 | 43 6f 6d 6d 75 6e 69 63 |eSearch |Communic|
|000028b0| 61 74 69 6f 6e 20 45 78 | 74 65 6e 73 69 6f 6e 2e |ation Ex|tension.|
|000028c0| 20 59 6f 75 20 77 69 6c | 6c 20 6e 65 65 64 20 74 | You wil|l need t|
|000028d0| 6f 20 6d 61 6b 65 20 43 | 20 66 75 6e 63 74 69 6f |o make C| functio|
|000028e0| 6e 20 63 61 6c 6c 73 20 | 74 6f 20 74 68 65 20 41 |n calls |to the A|
|000028f0| 70 70 6c 65 53 65 61 72 | 63 68 20 43 6c 69 65 6e |ppleSear|ch Clien|
|00002900| 74 20 4c 69 62 72 61 72 | 79 20 69 6e 20 6f 72 64 |t Librar|y in ord|
|00002910| 65 72 20 74 6f 20 61 63 | 63 65 73 73 20 74 68 65 |er to ac|cess the|
|00002920| 20 73 65 72 76 65 72 2e | 0d 54 68 65 20 61 64 76 | server.|.The adv|
|00002930| 61 6e 74 61 67 65 20 6f | 66 20 75 73 69 6e 67 20 |antage o|f using |
|00002940| 41 70 70 6c 65 20 65 76 | 65 6e 74 73 20 69 73 20 |Apple ev|ents is |
|00002950| 74 68 61 74 20 79 6f 75 | 20 77 6f 6e d5 74 20 68 |that you| won.t h|
|00002960| 61 76 65 20 74 6f 20 63 | 68 61 6e 67 65 20 79 6f |ave to c|hange yo|
|00002970| 75 72 20 75 73 65 72 20 | 69 6e 74 65 72 66 61 63 |ur user |interfac|
|00002980| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 69 66 |e applic|ation if|
|00002990| 20 41 70 70 6c 65 20 72 | 65 70 6c 61 63 65 73 20 | Apple r|eplaces |
|000029a0| 74 68 65 20 74 72 61 6e | 73 70 6f 72 74 2d 6c 61 |the tran|sport-la|
|000029b0| 79 65 72 2d 6c 65 76 65 | 6c 20 70 72 6f 74 6f 63 |yer-leve|l protoc|
|000029c0| 6f 6c 20 69 6e 20 66 75 | 74 75 72 65 20 72 65 6c |ol in fu|ture rel|
|000029d0| 65 61 73 65 73 20 6f 66 | 20 74 68 65 20 70 72 6f |eases of| the pro|
|000029e0| 64 75 63 74 2e 20 41 6c | 73 6f 2c 20 69 66 20 79 |duct. Al|so, if y|
|000029f0| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |our appl|ication |
|00002a00| 73 75 70 70 6f 72 74 73 | 20 75 70 64 61 74 65 20 |supports| update |
|00002a10| 64 65 6c 69 76 65 72 79 | 20 75 73 69 6e 67 20 74 |delivery| using t|
|00002a20| 68 65 20 41 70 70 6c 65 | 53 65 61 72 63 68 20 43 |he Apple|Search C|
|00002a30| 6f 6d 6d 75 6e 69 63 61 | 74 69 6f 6e 20 45 78 74 |ommunica|tion Ext|
|00002a40| 65 6e 73 69 6f 6e 2c 20 | 75 73 65 72 73 20 63 61 |ension, |users ca|
|00002a50| 6e 20 72 65 63 65 69 76 | 65 20 75 70 64 61 74 65 |n receiv|e update|
|00002a60| 73 20 77 69 74 68 6f 75 | 74 20 68 61 76 69 6e 67 |s withou|t having|
|00002a70| 20 74 68 65 69 72 20 75 | 73 65 72 20 69 6e 74 65 | their u|ser inte|
|00002a80| 72 66 61 63 65 20 61 70 | 70 6c 69 63 61 74 69 6f |rface ap|plicatio|
|00002a90| 6e 20 72 75 6e 6e 69 6e | 67 2e 0d 54 68 65 20 61 |n runnin|g..The a|
|00002aa0| 64 76 61 6e 74 61 67 65 | 20 6f 66 20 75 73 69 6e |dvantage| of usin|
|00002ab0| 67 20 74 68 65 20 43 20 | 41 50 49 20 69 73 20 79 |g the C |API is y|
|00002ac0| 6f 75 20 68 61 76 65 20 | 6d 6f 72 65 20 66 6c 65 |ou have |more fle|
|00002ad0| 78 69 62 69 6c 69 74 79 | 20 74 68 65 6e 20 79 6f |xibility| then yo|
|00002ae0| 75 20 64 6f 20 77 69 74 | 68 20 41 70 70 6c 65 20 |u do wit|h Apple |
|00002af0| 65 76 65 6e 74 73 2e 20 | 46 6f 72 20 69 6e 73 74 |events. |For inst|
|00002b00| 61 6e 63 65 2c 20 79 6f | 75 20 63 61 6e 20 6d 61 |ance, yo|u can ma|
|00002b10| 6b 65 20 61 20 43 20 66 | 75 6e 63 74 69 6f 6e 20 |ke a C f|unction |
|00002b20| 63 61 6c 6c 20 74 68 61 | 74 20 61 6c 6c 6f 77 73 |call tha|t allows|
|00002b30| 20 61 20 75 73 65 72 20 | 74 6f 20 63 6f 6e 6e 65 | a user |to conne|
|00002b40| 63 74 20 74 6f 20 74 68 | 65 20 73 65 72 76 65 72 |ct to th|e server|
|00002b50| 20 77 69 74 68 6f 75 74 | 20 75 73 69 6e 67 20 74 | without| using t|
|00002b60| 68 65 20 41 70 70 6c 65 | 53 65 61 72 63 68 20 41 |he Apple|Search A|
|00002b70| 75 74 68 65 6e 74 69 63 | 61 74 69 6f 6e 20 45 78 |uthentic|ation Ex|
|00002b80| 74 65 6e 73 69 6f 6e 2e | 0d 54 68 65 20 66 6f 6c |tension.|.The fol|
|00002b90| 6c 6f 77 69 6e 67 20 64 | 69 61 67 72 61 6d 20 73 |lowing d|iagram s|
|00002ba0| 68 6f 77 73 20 68 6f 77 | 20 74 68 65 20 76 61 72 |hows how| the var|
|00002bb0| 69 6f 75 73 20 63 6f 6d | 70 6f 6e 65 6e 74 73 20 |ious com|ponents |
|00002bc0| 69 6e 74 65 72 61 63 74 | 3a 0d 43 6c 69 65 6e 74 |interact|:.Client|
|00002bd0| 2f 73 65 72 76 65 72 20 | 63 6f 6e 6e 65 63 74 69 |/server |connecti|
|00002be0| 6f 6e 0d 54 68 65 20 41 | 70 70 6c 65 53 65 61 72 |on.The A|ppleSear|
|00002bf0| 63 68 20 43 6c 69 65 6e | 74 2f 53 65 72 76 65 72 |ch Clien|t/Server|
|00002c00| 20 70 72 6f 74 6f 63 6f | 6c 20 72 65 73 69 64 65 | protoco|l reside|
|00002c10| 73 20 6f 6e 20 74 6f 70 | 20 6f 66 20 74 68 65 20 |s on top| of the |
|00002c20| 50 72 6f 67 72 61 6d 2d | 74 6f 2d 50 72 6f 67 72 |Program-|to-Progr|
|00002c30| 61 6d 20 43 6f 6d 6d 75 | 6e 69 63 61 74 69 6f 6e |am Commu|nication|
|00002c40| 73 20 28 50 50 43 29 20 | 70 72 6f 74 6f 63 6f 6c |s (PPC) |protocol|
|00002c50| 2e 20 54 68 65 20 41 70 | 70 6c 65 53 65 61 72 63 |. The Ap|pleSearc|
|00002c60| 68 20 43 6c 69 65 6e 74 | 2f 53 65 72 76 65 72 20 |h Client|/Server |
|00002c70| 70 72 6f 74 6f 63 6f 6c | 20 75 73 65 73 20 50 50 |protocol| uses PP|
|00002c80| 43 20 74 6f 20 73 65 6e | 64 20 61 6e 64 20 72 65 |C to sen|d and re|
|00002c90| 63 65 69 76 65 20 68 69 | 67 68 2d 6c 65 76 65 6c |ceive hi|gh-level|
|00002ca0| 20 6d 65 73 73 61 67 65 | 20 62 6c 6f 63 6b 73 20 | message| blocks |
|00002cb0| 62 65 74 77 65 65 6e 20 | 74 68 65 20 41 70 70 6c |between |the Appl|
|00002cc0| 65 53 65 61 72 63 68 20 | 43 6f 6d 6d 75 6e 69 63 |eSearch |Communic|
|00002cd0| 61 74 69 6f 6e 20 45 78 | 74 65 6e 73 69 6f 6e 20 |ation Ex|tension |
|00002ce0| 61 6e 64 20 74 68 65 20 | 41 70 70 6c 65 53 65 61 |and the |AppleSea|
|00002cf0| 72 63 68 20 53 65 72 76 | 65 72 2e 20 0d 4e 6f 74 |rch Serv|er. .Not|
|00002d00| 65 3a 20 20 49 6e 20 66 | 75 74 75 72 65 20 76 65 |e: In f|uture ve|
|00002d10| 72 73 69 6f 6e 73 20 6f | 66 20 41 70 70 6c 65 53 |rsions o|f AppleS|
|00002d20| 65 61 72 63 68 2c 20 61 | 6e 6f 74 68 65 72 20 74 |earch, a|nother t|
|00002d30| 72 61 6e 73 70 6f 72 74 | 2d 6c 61 79 65 72 2d 6c |ransport|-layer-l|
|00002d40| 65 76 65 6c 20 70 72 6f | 74 6f 63 6f 6c 20 62 65 |evel pro|tocol be|
|00002d50| 73 69 64 65 73 20 50 50 | 43 20 6d 61 79 20 62 65 |sides PP|C may be|
|00002d60| 20 75 73 65 64 2e 0d 54 | 68 65 20 63 6c 69 65 6e | used..T|he clien|
|00002d70| 74 2f 73 65 72 76 65 72 | 20 63 6f 6e 6e 65 63 74 |t/server| connect|
|00002d80| 69 6f 6e 20 69 73 20 65 | 73 74 61 62 6c 69 73 68 |ion is e|stablish|
|00002d90| 65 64 20 77 68 65 6e 20 | 74 68 65 20 63 6c 69 65 |ed when |the clie|
|00002da0| 6e 74 d5 73 20 6c 6f 67 | 2d 6f 6e 20 72 65 71 75 |nt.s log|-on requ|
|00002db0| 65 73 74 20 69 73 20 73 | 75 63 63 65 73 73 66 75 |est is s|uccessfu|
|00002dc0| 6c 6c 79 20 70 72 6f 63 | 65 73 73 65 64 20 62 79 |lly proc|essed by|
|00002dd0| 20 74 68 65 20 73 65 72 | 76 65 72 2e 20 49 6e 20 | the ser|ver. In |
|00002de0| 41 70 70 6c 65 53 65 61 | 72 63 68 20 76 65 72 73 |AppleSea|rch vers|
|00002df0| 69 6f 6e 20 31 2e 30 2c | 20 61 20 63 6c 69 65 6e |ion 1.0,| a clien|
|00002e00| 74 20 63 61 6e 20 63 6f | 6e 6e 65 63 74 20 74 6f |t can co|nnect to|
|00002e10| 20 6f 6e 6c 79 20 6f 6e | 65 20 73 65 72 76 65 72 | only on|e server|
|00002e20| 20 61 74 20 61 20 74 69 | 6d 65 2e 20 4f 6e 63 65 | at a ti|me. Once|
|00002e30| 20 74 68 65 20 63 6f 6e | 6e 65 63 74 69 6f 6e 20 | the con|nection |
|00002e40| 69 73 20 6d 61 64 65 2c | 20 74 68 65 20 75 73 65 |is made,| the use|
|00002e50| 72 20 63 61 6e 20 70 65 | 72 66 6f 72 6d 20 61 6c |r can pe|rform al|
|00002e60| 6c 20 41 70 70 6c 65 53 | 65 61 72 63 68 20 66 75 |l AppleS|earch fu|
|00002e70| 6e 63 74 69 6f 6e 73 d1 | 69 6e 63 6c 75 64 69 6e |nctions.|includin|
|00002e80| 67 20 73 65 61 72 63 68 | 20 69 6e 66 6f 72 6d 61 |g search| informa|
|00002e90| 74 69 6f 6e 20 73 6f 75 | 72 63 65 73 2c 20 72 65 |tion sou|rces, re|
|00002ea0| 74 72 69 65 76 65 20 61 | 72 74 69 63 6c 65 73 2c |trieve a|rticles,|
|00002eb0| 20 61 6e 64 20 61 64 64 | 20 52 65 70 6f 72 74 65 | and add| Reporte|
|00002ec0| 72 73 20 74 6f 20 74 68 | 65 20 73 65 72 76 65 72 |rs to th|e server|
|00002ed0| d1 75 6e 74 69 6c 20 74 | 68 65 20 63 6f 6e 6e 65 |.until t|he conne|
|00002ee0| 63 74 69 6f 6e 20 69 73 | 20 74 65 72 6d 69 6e 61 |ction is| termina|
|00002ef0| 74 65 64 2e 20 49 66 20 | 74 68 65 20 75 73 65 72 |ted. If |the user|
|00002f00| 20 69 73 20 63 6f 6e 6e | 65 63 74 65 64 20 61 73 | is conn|ected as|
|00002f10| 20 61 20 67 75 65 73 74 | 2c 20 74 68 65 20 63 6c | a guest|, the cl|
|00002f20| 69 65 6e 74 20 63 61 6e | 6e 6f 74 20 6d 61 6b 65 |ient can|not make|
|00002f30| 20 52 65 70 6f 72 74 65 | 72 20 6f 72 20 6f 62 6a | Reporte|r or obj|
|00002f40| 65 63 74 2d 64 61 74 61 | 62 61 73 65 2d 72 65 6c |ect-data|base-rel|
|00002f50| 61 74 65 64 20 72 65 71 | 75 65 73 74 73 20 74 6f |ated req|uests to|
|00002f60| 20 74 68 65 20 73 65 72 | 76 65 72 20 28 74 68 65 | the ser|ver (the|
|00002f70| 20 73 65 72 76 65 72 20 | 6f 62 6a 65 63 74 20 64 | server |object d|
|00002f80| 61 74 61 62 61 73 65 20 | 69 73 20 64 65 73 63 72 |atabase |is descr|
|00002f90| 69 62 65 64 20 69 6e 20 | 74 68 65 20 73 65 63 74 |ibed in |the sect|
|00002fa0| 69 6f 6e 20 d2 53 65 72 | 76 65 72 20 4f 62 6a 65 |ion .Ser|ver Obje|
|00002fb0| 63 74 20 44 61 74 61 62 | 61 73 65 d3 20 6c 61 74 |ct Datab|ase. lat|
|00002fc0| 65 72 20 69 6e 20 74 68 | 69 73 20 63 68 61 70 74 |er in th|is chapt|
|00002fd0| 65 72 29 2e 0d 0d 54 68 | 65 20 63 6c 69 65 6e 74 |er)...Th|e client|
|00002fe0| 2f 73 65 72 76 65 72 20 | 63 6f 6e 6e 65 63 74 69 |/server |connecti|
|00002ff0| 6f 6e 20 69 73 20 74 65 | 72 6d 69 6e 61 74 65 64 |on is te|rminated|
|00003000| 20 69 6e 20 6f 6e 65 20 | 6f 66 20 74 68 72 65 65 | in one |of three|
|00003010| 20 77 61 79 73 3a 0d a5 | 09 57 68 65 6e 20 61 20 | ways:..|.When a |
|00003020| 63 6c 69 65 6e 74 20 6c | 6f 67 73 20 6f 66 66 2c |client l|ogs off,|
|00003030| 20 61 20 4c 6f 67 6f 66 | 66 20 63 61 6c 6c 20 69 | a Logof|f call i|
|00003040| 73 20 69 73 73 75 65 64 | 3b 20 74 68 65 20 41 70 |s issued|; the Ap|
|00003050| 70 6c 65 53 65 61 72 63 | 68 20 43 6c 69 65 6e 74 |pleSearc|h Client|
|00003060| 20 69 6e 64 69 63 61 74 | 65 73 20 61 20 64 69 73 | indicat|es a dis|
|00003070| 63 6f 6e 6e 65 63 74 20 | 74 6f 20 74 68 65 20 41 |connect |to the A|
|00003080| 70 70 6c 65 53 65 61 72 | 63 68 20 43 6f 6d 6d 75 |ppleSear|ch Commu|
|00003090| 6e 69 63 61 74 69 6f 6e | 73 20 45 78 74 65 6e 73 |nication|s Extens|
|000030a0| 69 6f 6e 2c 20 77 68 69 | 63 68 20 6d 61 6b 65 73 |ion, whi|ch makes|
|000030b0| 20 74 68 65 20 4c 6f 67 | 6f 66 66 20 63 61 6c 6c | the Log|off call|
|000030c0| 20 74 6f 20 74 68 65 20 | 41 70 70 6c 65 53 65 61 | to the |AppleSea|
|000030d0| 72 63 68 20 53 65 72 76 | 65 72 2e 0d a5 09 57 68 |rch Serv|er....Wh|
|000030e0| 65 6e 20 61 20 63 6c 69 | 65 6e 74 20 65 6e 63 6f |en a cli|ent enco|
|000030f0| 75 6e 74 65 72 73 20 61 | 20 66 61 74 61 6c 20 65 |unters a| fatal e|
|00003100| 72 72 6f 72 2c 20 73 75 | 63 68 20 61 73 20 61 20 |rror, su|ch as a |
|00003110| 50 50 43 20 63 6f 6d 6d | 75 6e 69 63 61 74 69 6f |PPC comm|unicatio|
|00003120| 6e 20 65 72 72 6f 72 2c | 20 69 74 20 64 69 73 63 |n error,| it disc|
|00003130| 6f 6e 6e 65 63 74 73 20 | 69 74 73 65 6c 66 2e 0d |onnects |itself..|
|00003140| a5 09 57 68 65 6e 20 74 | 68 65 20 63 6f 6d 6d 75 |..When t|he commu|
|00003150| 6e 69 63 61 74 69 6f 6e | 20 6c 61 79 65 72 20 6e |nication| layer n|
|00003160| 6f 74 69 66 69 65 73 20 | 74 68 65 20 63 6c 69 65 |otifies |the clie|
|00003170| 6e 74 20 61 6e 64 2f 6f | 72 20 73 65 72 76 65 72 |nt and/o|r server|
|00003180| 20 74 68 61 74 20 74 68 | 65 20 63 6f 6e 6e 65 63 | that th|e connec|
|00003190| 74 69 6f 6e 20 69 73 20 | 6e 6f 20 6c 6f 6e 67 65 |tion is |no longe|
|000031a0| 72 20 74 68 65 72 65 2c | 20 69 74 20 64 69 73 63 |r there,| it disc|
|000031b0| 6f 6e 6e 65 63 74 73 20 | 69 74 73 65 6c 66 2e 0d |onnects |itself..|
|000031c0| 49 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 73 6f 75 72 |Informat|ion sour|
|000031d0| 63 65 73 0d 54 68 65 20 | 69 6e 66 6f 72 6d 61 74 |ces.The |informat|
|000031e0| 69 6f 6e 20 73 6f 75 72 | 63 65 73 20 74 68 61 74 |ion sour|ces that|
|000031f0| 20 63 6c 69 65 6e 74 20 | 75 73 65 72 73 20 63 61 | client |users ca|
|00003200| 6e 20 73 65 61 72 63 68 | 20 61 72 65 20 73 68 61 |n search| are sha|
|00003210| 72 65 64 20 76 6f 6c 75 | 6d 65 73 20 6f 72 20 66 |red volu|mes or f|
|00003220| 6f 6c 64 65 72 73 2c 20 | 63 6f 6e 74 61 69 6e 69 |olders, |containi|
|00003230| 6e 67 20 64 6f 63 75 6d | 65 6e 74 73 20 69 6e 20 |ng docum|ents in |
|00003240| 76 61 72 69 6f 75 73 20 | 66 6f 72 6d 61 74 73 2c |various |formats,|
|00003250| 20 74 68 61 74 20 72 65 | 73 69 64 65 20 6f 6e 20 | that re|side on |
|00003260| 61 6e 20 41 70 70 6c 65 | 53 65 61 72 63 68 20 73 |an Apple|Search s|
|00003270| 65 72 76 65 72 2e 20 55 | 73 65 72 73 20 6d 75 73 |erver. U|sers mus|
|00003280| 74 20 68 61 76 65 20 61 | 70 70 72 6f 70 72 69 61 |t have a|ppropria|
|00003290| 74 65 20 61 63 63 65 73 | 73 20 70 72 69 76 69 6c |te acces|s privil|
|000032a0| 65 67 65 73 20 74 6f 20 | 66 6f 6c 64 65 72 73 20 |eges to |folders |
|000032b0| 6f 6e 20 74 68 65 20 73 | 65 72 76 65 72 20 62 65 |on the s|erver be|
|000032c0| 66 6f 72 65 20 74 68 65 | 79 20 63 61 6e 20 76 69 |fore the|y can vi|
|000032d0| 65 77 20 6f 72 20 73 65 | 61 72 63 68 20 74 68 61 |ew or se|arch tha|
|000032e0| 74 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 73 6f |t inform|ation so|
|000032f0| 75 72 63 65 3b 20 61 63 | 63 65 73 73 20 70 72 69 |urce; ac|cess pri|
|00003300| 76 69 6c 65 67 65 73 20 | 61 72 65 20 70 72 6f 76 |vileges |are prov|
|00003310| 69 64 65 64 20 62 79 20 | 41 70 70 6c 65 53 68 61 |ided by |AppleSha|
|00003320| 72 65 20 6f 72 20 62 79 | 20 66 69 6c 65 20 73 68 |re or by| file sh|
|00003330| 61 72 69 6e 67 20 69 6e | 20 73 79 73 74 65 6d 20 |aring in| system |
|00003340| 73 6f 66 74 77 61 72 65 | 20 76 65 72 73 69 6f 6e |software| version|
|00003350| 20 37 2e 30 2e 0d 4e 6f | 74 65 3a 20 20 41 70 70 | 7.0..No|te: App|
|00003360| 6c 65 53 65 61 72 63 68 | 20 72 61 6e 6b 73 20 61 |leSearch| ranks a|
|00003370| 72 74 69 63 6c 65 73 20 | 69 6e 20 74 65 72 6d 73 |rticles |in terms|
|00003380| 20 6f 66 20 68 6f 77 20 | 72 65 6c 65 76 61 6e 74 | of how |relevant|
|00003390| 20 74 68 65 79 20 61 72 | 65 20 74 6f 20 61 20 75 | they ar|e to a u|
|000033a0| 73 65 72 d5 73 20 73 65 | 61 72 63 68 20 72 65 71 |ser.s se|arch req|
|000033b0| 75 65 73 74 2e 20 49 74 | 20 77 69 6c 6c 20 72 61 |uest. It| will ra|
|000033c0| 6e 6b 20 74 68 65 20 61 | 72 74 69 63 6c 65 73 20 |nk the a|rticles |
|000033d0| 66 6f 72 20 65 61 63 68 | 20 69 6e 66 6f 72 6d 61 |for each| informa|
|000033e0| 74 69 6f 6e 20 73 6f 75 | 72 63 65 3b 20 74 68 61 |tion sou|rce; tha|
|000033f0| 74 20 69 73 2c 20 69 74 | 20 77 69 6c 6c 20 6e 6f |t is, it| will no|
|00003400| 74 20 64 65 74 65 72 6d | 69 6e 65 20 72 65 6c 65 |t determ|ine rele|
|00003410| 76 61 6e 63 79 20 61 63 | 72 6f 73 73 20 6d 6f 72 |vancy ac|ross mor|
|00003420| 65 20 74 68 61 6e 20 6f | 6e 65 20 69 6e 66 6f 72 |e than o|ne infor|
|00003430| 6d 61 74 69 6f 6e 20 73 | 6f 75 72 63 65 20 61 74 |mation s|ource at|
|00003440| 20 61 20 74 69 6d 65 2e | 0d 49 6d 6d 65 64 69 61 | a time.|.Immedia|
|00003450| 74 65 20 73 65 61 72 63 | 68 65 73 0d 57 68 65 6e |te searc|hes.When|
|00003460| 20 61 6e 20 69 6d 6d 65 | 64 69 61 74 65 20 73 65 | an imme|diate se|
|00003470| 61 72 63 68 20 28 72 61 | 74 68 65 72 20 74 68 61 |arch (ra|ther tha|
|00003480| 6e 20 61 20 73 63 68 65 | 64 75 6c 65 64 20 73 65 |n a sche|duled se|
|00003490| 61 72 63 68 29 20 69 73 | 20 69 6e 69 74 69 61 74 |arch) is| initiat|
|000034a0| 65 64 20 62 79 20 74 68 | 65 20 75 73 65 72 2c 20 |ed by th|e user, |
|000034b0| 69 74 73 20 72 65 73 75 | 6c 74 73 20 61 72 65 20 |its resu|lts are |
|000034c0| 72 65 74 75 72 6e 65 64 | 20 69 6d 6d 65 64 69 61 |returned| immedia|
|000034d0| 74 65 6c 79 20 62 79 20 | 74 68 65 20 73 65 72 76 |tely by |the serv|
|000034e0| 65 72 2e 20 54 6f 20 70 | 65 72 66 6f 72 6d 20 61 |er. To p|erform a|
|000034f0| 6e 20 69 6d 6d 65 64 69 | 61 74 65 20 73 65 61 72 |n immedi|ate sear|
|00003500| 63 68 2c 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 |ch, your| applica|
|00003510| 74 69 6f 6e 20 6d 75 73 | 74 20 6d 61 6b 65 20 61 |tion mus|t make a|
|00003520| 6e 20 41 70 70 6c 65 53 | 65 61 72 63 68 20 6f 70 |n AppleS|earch op|
|00003530| 65 6e 2d 73 65 61 72 63 | 68 2d 73 65 73 73 69 6f |en-searc|h-sessio|
|00003540| 6e 20 63 61 6c 6c 20 74 | 6f 20 6f 70 65 6e 20 61 |n call t|o open a|
|00003550| 20 73 65 61 72 63 68 20 | 73 65 73 73 69 6f 6e 2c | search |session,|
|00003560| 20 61 6e 64 20 74 68 65 | 6e 20 6d 61 6b 65 20 61 | and the|n make a|
|00003570| 6e 20 41 70 70 6c 65 53 | 65 61 72 63 68 20 73 65 |n AppleS|earch se|
|00003580| 61 72 63 68 20 63 61 6c | 6c 20 77 69 74 68 20 61 |arch cal|l with a|
|00003590| 70 70 72 6f 70 72 69 61 | 74 65 20 70 61 72 61 6d |ppropria|te param|
|000035a0| 65 74 65 72 73 2e 20 59 | 6f 75 72 20 61 70 70 6c |eters. Y|our appl|
|000035b0| 69 63 61 74 69 6f 6e 20 | 63 61 6e 20 6d 61 6b 65 |ication |can make|
|000035c0| 20 61 73 20 6d 61 6e 79 | 20 73 65 61 72 63 68 20 | as many| search |
|000035d0| 63 61 6c 6c 73 20 61 73 | 20 79 6f 75 20 77 61 6e |calls as| you wan|
|000035e0| 74 20 77 69 74 68 69 6e | 20 6f 6e 65 20 73 65 61 |t within| one sea|
|000035f0| 72 63 68 20 73 65 73 73 | 69 6f 6e 20 61 6e 64 20 |rch sess|ion and |
|00003600| 63 61 6e 20 61 6c 73 6f | 20 6f 70 65 6e 20 61 73 |can also| open as|
|00003610| 20 6d 61 6e 79 20 73 65 | 61 72 63 68 20 73 65 73 | many se|arch ses|
|00003620| 73 69 6f 6e 73 20 73 69 | 6d 75 6c 74 61 6e 65 6f |sions si|multaneo|
|00003630| 75 73 6c 79 20 61 73 20 | 72 65 73 6f 75 72 63 65 |usly as |resource|
|00003640| 73 20 6f 6e 20 74 68 65 | 20 73 65 72 76 65 72 20 |s on the| server |
|00003650| 61 6c 6c 6f 77 2e 20 57 | 68 65 6e 20 79 6f 75 72 |allow. W|hen your|
|00003660| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 69 73 20 | applica|tion is |
|00003670| 64 6f 6e 65 20 73 65 61 | 72 63 68 69 6e 67 2c 20 |done sea|rching, |
|00003680| 74 68 65 20 73 65 73 73 | 69 6f 6e 20 6d 75 73 74 |the sess|ion must|
|00003690| 20 62 65 20 63 6c 6f 73 | 65 64 20 62 79 20 69 73 | be clos|ed by is|
|000036a0| 73 75 69 6e 67 20 61 6e | 20 41 70 70 6c 65 53 65 |suing an| AppleSe|
|000036b0| 61 72 63 68 20 63 6c 6f | 73 65 2d 73 65 61 72 63 |arch clo|se-searc|
|000036c0| 68 2d 73 65 73 73 69 6f | 6e 20 63 61 6c 6c 2e 0d |h-sessio|n call..|
|000036d0| 41 73 20 61 20 72 65 73 | 75 6c 74 20 6f 66 20 61 |As a res|ult of a|
|000036e0| 6e 20 69 6d 6d 65 64 69 | 61 74 65 20 73 65 61 72 |n immedi|ate sear|
|000036f0| 63 68 2c 20 74 68 65 20 | 73 65 72 76 65 72 20 72 |ch, the |server r|
|00003700| 65 74 75 72 6e 73 20 61 | 20 6c 69 73 74 20 6f 66 |eturns a| list of|
|00003710| 20 61 72 74 69 63 6c 65 | 73 20 74 68 61 74 20 6d | article|s that m|
|00003720| 61 74 63 68 20 74 68 65 | 20 75 73 65 72 d5 73 20 |atch the| user.s |
|00003730| 73 65 61 72 63 68 20 72 | 65 71 75 65 73 74 2c 20 |search r|equest, |
|00003740| 72 61 6e 6b 65 64 20 69 | 6e 20 6f 72 64 65 72 20 |ranked i|n order |
|00003750| 6f 66 20 72 65 6c 65 76 | 61 6e 63 65 2e 20 54 68 |of relev|ance. Th|
|00003760| 65 20 6c 69 73 74 20 73 | 68 6f 77 73 20 74 68 65 |e list s|hows the|
|00003770| 20 61 72 74 69 63 6c 65 | 20 49 44 2c 20 61 6c 6f | article| ID, alo|
|00003780| 6e 67 20 77 69 74 68 20 | 69 74 73 20 6d 6f 64 69 |ng with |its modi|
|00003790| 66 69 63 61 74 69 6f 6e | 20 64 61 74 65 2c 20 74 |fication| date, t|
|000037a0| 69 74 6c 65 2c 20 61 6e | 64 20 66 69 6c 65 20 73 |itle, an|d file s|
|000037b0| 69 7a 65 2e 20 54 6f 20 | 67 65 74 20 74 68 65 20 |ize. To |get the |
|000037c0| 61 63 74 75 61 6c 20 61 | 72 74 69 63 6c 65 20 74 |actual a|rticle t|
|000037d0| 65 78 74 20 6f 72 20 69 | 6e 66 6f 72 6d 61 74 69 |ext or i|nformati|
|000037e0| 6f 6e 20 61 62 6f 75 74 | 20 61 6e 20 61 72 74 69 |on about| an arti|
|000037f0| 63 6c 65 2c 20 79 6f 75 | 20 6d 75 73 74 20 6d 61 |cle, you| must ma|
|00003800| 6b 65 20 73 65 70 61 72 | 61 74 65 20 63 61 6c 6c |ke separ|ate call|
|00003810| 73 2c 20 77 68 69 63 68 | 20 61 72 65 20 64 65 73 |s, which| are des|
|00003820| 63 72 69 62 65 64 20 69 | 6e 20 74 68 65 20 6e 65 |cribed i|n the ne|
|00003830| 78 74 20 73 65 63 74 69 | 6f 6e 2e 0d 41 72 74 69 |xt secti|on..Arti|
|00003840| 63 6c 65 20 72 65 74 72 | 69 65 76 61 6c 0d 54 68 |cle retr|ieval.Th|
|00003850| 65 72 65 20 61 72 65 20 | 74 68 72 65 65 20 41 50 |ere are |three AP|
|00003860| 49 20 63 61 6c 6c 73 20 | 72 65 6c 61 74 65 64 20 |I calls |related |
|00003870| 74 6f 20 61 72 74 69 63 | 6c 65 20 72 65 74 72 69 |to artic|le retri|
|00003880| 65 76 61 6c 3a 0d a5 09 | 41 6e 20 41 70 70 6c 65 |eval:...|An Apple|
|00003890| 53 65 61 72 63 68 20 67 | 65 74 2d 61 72 74 69 63 |Search g|et-artic|
|000038a0| 6c 65 2d 74 65 78 74 20 | 63 61 6c 6c 20 72 65 74 |le-text |call ret|
|000038b0| 75 72 6e 73 20 74 68 65 | 20 74 65 78 74 20 6f 66 |urns the| text of|
|000038c0| 20 61 6e 20 61 72 74 69 | 63 6c 65 2e 0d a5 09 41 | an arti|cle....A|
|000038d0| 6e 20 41 70 70 6c 65 53 | 65 61 72 63 68 20 67 65 |n AppleS|earch ge|
|000038e0| 74 2d 61 72 74 69 63 6c | 65 2d 69 6e 66 6f 20 63 |t-articl|e-info c|
|000038f0| 61 6c 6c 20 72 65 74 75 | 72 6e 73 20 61 6e 20 61 |all retu|rns an a|
|00003900| 72 74 69 63 6c 65 d5 73 | 20 61 74 74 72 69 62 75 |rticle.s| attribu|
|00003910| 74 65 73 20 73 75 63 68 | 20 61 73 20 69 74 73 20 |tes such| as its |
|00003920| 6d 6f 64 69 66 69 63 61 | 74 69 6f 6e 20 64 61 74 |modifica|tion dat|
|00003930| 65 2c 20 74 69 74 6c 65 | 2c 20 61 6e 64 20 73 69 |e, title|, and si|
|00003940| 7a 65 2e 0d a5 09 41 6e | 20 41 70 70 6c 65 53 65 |ze....An| AppleSe|
|00003950| 61 72 63 68 20 67 65 74 | 2d 61 72 74 69 63 6c 65 |arch get|-article|
|00003960| 2d 6d 61 74 63 68 65 73 | 20 63 61 6c 6c 20 72 65 |-matches| call re|
|00003970| 74 75 72 6e 73 20 61 20 | 6c 69 73 74 20 6f 66 20 |turns a |list of |
|00003980| 6f 66 66 73 65 74 73 20 | 61 6e 64 20 6c 65 6e 67 |offsets |and leng|
|00003990| 74 68 73 2c 20 77 68 69 | 63 68 20 72 65 70 72 65 |ths, whi|ch repre|
|000039a0| 73 65 6e 74 20 74 68 65 | 20 77 6f 72 64 73 20 6d |sent the| words m|
|000039b0| 61 74 63 68 69 6e 67 20 | 74 68 65 20 6f 72 69 67 |atching |the orig|
|000039c0| 69 6e 61 6c 20 71 75 65 | 72 79 20 28 75 73 65 64 |inal que|ry (used|
|000039d0| 20 66 6f 72 20 74 68 65 | 20 68 69 67 68 6c 69 67 | for the| highlig|
|000039e0| 68 74 20 6d 61 74 63 68 | 69 6e 67 20 77 6f 72 64 |ht match|ing word|
|000039f0| 73 20 66 65 61 74 75 72 | 65 20 69 6e 20 74 68 65 |s featur|e in the|
|00003a00| 20 41 70 70 6c 65 53 65 | 61 72 63 68 20 43 6c 69 | AppleSe|arch Cli|
|00003a10| 65 6e 74 20 73 6f 66 74 | 77 61 72 65 29 2e 0d 54 |ent soft|ware)..T|
|00003a20| 6f 20 6d 61 6b 65 20 74 | 68 65 73 65 20 63 61 6c |o make t|hese cal|
|00003a30| 6c 73 2c 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 |ls, your| applica|
|00003a40| 74 69 6f 6e 20 6d 75 73 | 74 20 68 61 76 65 20 74 |tion mus|t have t|
|00003a50| 68 65 20 61 72 74 69 63 | 6c 65 d5 73 20 69 6e 66 |he artic|le.s inf|
|00003a60| 6f 72 6d 61 74 69 6f 6e | 20 73 6f 75 72 63 65 20 |ormation| source |
|00003a70| 49 44 20 61 6e 64 20 61 | 72 74 69 63 6c 65 20 49 |ID and a|rticle I|
|00003a80| 44 2c 20 62 6f 74 68 20 | 6f 66 20 77 68 69 63 68 |D, both |of which|
|00003a90| 20 61 72 65 20 72 65 74 | 75 72 6e 65 64 20 62 79 | are ret|urned by|
|00003aa0| 20 61 20 73 65 61 72 63 | 68 20 63 61 6c 6c 2e 20 | a searc|h call. |
|00003ab0| 41 6c 73 6f 2c 20 74 6f | 20 67 65 74 20 6d 61 74 |Also, to| get mat|
|00003ac0| 63 68 65 73 2c 20 79 6f | 75 20 6d 75 73 74 20 68 |ches, yo|u must h|
|00003ad0| 61 76 65 20 61 20 73 65 | 61 72 63 68 20 73 65 73 |ave a se|arch ses|
|00003ae0| 73 69 6f 6e 20 49 44 20 | 66 72 6f 6d 20 77 68 69 |sion ID |from whi|
|00003af0| 63 68 20 74 68 65 20 61 | 72 74 69 63 6c 65 20 77 |ch the a|rticle w|
|00003b00| 61 73 20 66 6f 75 6e 64 | 2c 20 61 6e 64 20 74 68 |as found|, and th|
|00003b10| 65 20 73 65 61 72 63 68 | 20 65 6e 67 69 6e 65 20 |e search| engine |
|00003b20| 6d 75 73 74 20 62 65 20 | 6f 70 65 6e 2e 0d 4f 72 |must be |open..Or|
|00003b30| 69 67 69 6e 61 6c 20 66 | 69 6c 65 20 72 65 74 72 |iginal f|ile retr|
|00003b40| 69 65 76 61 6c 0d 57 68 | 65 6e 20 41 70 70 6c 65 |ieval.Wh|en Apple|
|00003b50| 53 65 61 72 63 68 20 72 | 65 74 72 69 65 76 65 73 |Search r|etrieves|
|00003b60| 20 61 72 74 69 63 6c 65 | 73 2c 20 69 74 20 65 78 | article|s, it ex|
|00003b70| 74 72 61 63 74 73 20 70 | 6c 61 69 6e 20 74 65 78 |tracts p|lain tex|
|00003b80| 74 20 66 72 6f 6d 20 76 | 61 72 69 6f 75 73 20 64 |t from v|arious d|
|00003b90| 6f 63 75 6d 65 6e 74 20 | 74 79 70 65 73 2c 20 69 |ocument |types, i|
|00003ba0| 67 6e 6f 72 69 6e 67 20 | 67 72 61 70 68 69 63 73 |gnoring |graphics|
|00003bb0| 20 61 6e 64 20 66 6f 72 | 6d 61 74 74 69 6e 67 20 | and for|matting |
|00003bc0| 69 6e 73 74 72 75 63 74 | 69 6f 6e 73 2e 20 54 68 |instruct|ions. Th|
|00003bd0| 65 20 74 65 78 74 20 0d | 6f 66 20 65 61 63 68 20 |e text .|of each |
|00003be0| 61 72 74 69 63 6c 65 20 | 69 73 20 72 65 74 75 72 |article |is retur|
|00003bf0| 6e 65 64 20 74 6f 20 74 | 68 65 20 63 6c 69 65 6e |ned to t|he clien|
|00003c00| 74 20 62 79 20 6d 65 61 | 6e 73 20 6f 66 20 69 6e |t by mea|ns of in|
|00003c10| 64 69 76 69 64 75 61 6c | 20 63 61 6c 6c 73 20 74 |dividual| calls t|
|00003c20| 6f 20 61 20 0d 67 65 74 | 2d 61 72 74 69 63 6c 65 |o a .get|-article|
|00003c30| 2d 74 65 78 74 20 63 61 | 6c 6c 2e 20 54 68 65 20 |-text ca|ll. The |
|00003c40| 73 65 72 76 65 72 20 75 | 73 65 73 20 58 54 4e 44 |server u|ses XTND|
|00003c50| 20 66 69 6c 65 20 66 6f | 72 6d 61 74 20 74 72 61 | file fo|rmat tra|
|00003c60| 6e 73 6c 61 74 6f 72 73 | 20 74 6f 20 65 78 74 72 |nslators| to extr|
|00003c70| 61 63 74 20 74 68 65 20 | 74 65 78 74 2e 0d 41 20 |act the |text..A |
|00003c80| 67 65 74 2d 6f 72 69 67 | 69 6e 61 6c 2d 66 69 6c |get-orig|inal-fil|
|00003c90| 65 20 63 61 6c 6c 20 61 | 6c 6c 6f 77 73 20 79 6f |e call a|llows yo|
|00003ca0| 75 20 74 6f 20 72 65 74 | 72 69 65 76 65 20 61 6e |u to ret|rieve an|
|00003cb0| 20 61 72 74 69 63 6c 65 | 20 69 6e 20 69 74 73 20 | article| in its |
|00003cc0| 6f 72 69 67 69 6e 61 6c | 20 66 6f 72 6d 61 74 2e |original| format.|
|00003cd0| 20 46 6f 72 20 69 6e 73 | 74 61 6e 63 65 2c 20 69 | For ins|tance, i|
|00003ce0| 66 20 74 68 65 20 6f 72 | 69 67 69 6e 61 6c 20 61 |f the or|iginal a|
|00003cf0| 72 74 69 63 6c 65 20 6f | 6e 20 74 68 65 20 73 65 |rticle o|n the se|
|00003d00| 72 76 65 72 20 77 61 73 | 20 66 6f 72 6d 61 74 74 |rver was| formatt|
|00003d10| 65 64 20 75 73 69 6e 67 | 20 4d 61 63 57 72 69 74 |ed using| MacWrit|
|00003d20| 65 2c 20 61 20 67 65 74 | 2d 6f 72 69 67 69 6e 61 |e, a get|-origina|
|00003d30| 6c 2d 66 69 6c 65 20 63 | 61 6c 6c 20 77 6f 75 6c |l-file c|all woul|
|00003d40| 64 20 72 65 74 72 69 65 | 76 65 20 74 68 65 20 61 |d retrie|ve the a|
|00003d50| 72 74 69 63 6c 65 20 61 | 73 20 61 20 4d 61 63 57 |rticle a|s a MacW|
|00003d60| 72 69 74 65 20 64 6f 63 | 75 6d 65 6e 74 2e 20 54 |rite doc|ument. T|
|00003d70| 6f 20 6d 61 6b 65 20 74 | 68 69 73 20 63 61 6c 6c |o make t|his call|
|00003d80| 2c 20 79 6f 75 72 20 61 | 70 70 6c 69 63 61 74 69 |, your a|pplicati|
|00003d90| 6f 6e 20 6d 75 73 74 20 | 68 61 76 65 20 74 68 65 |on must |have the|
|00003da0| 20 61 72 74 69 63 6c 65 | d5 73 20 69 6e 66 6f 72 | article|.s infor|
|00003db0| 6d 61 74 69 6f 6e 20 73 | 6f 75 72 63 65 20 49 44 |mation s|ource ID|
|00003dc0| 20 61 6e 64 20 61 72 74 | 69 63 6c 65 20 49 44 2e | and art|icle ID.|
|00003dd0| 0d 53 63 68 65 64 75 6c | 65 64 20 73 65 61 72 63 |.Schedul|ed searc|
|00003de0| 68 65 73 0d 52 65 70 6f | 72 74 65 72 73 20 61 72 |hes.Repo|rters ar|
|00003df0| 65 20 71 75 65 72 69 65 | 73 20 74 68 61 74 20 61 |e querie|s that a|
|00003e00| 72 65 20 73 61 76 65 64 | 20 77 69 74 68 20 70 61 |re saved| with pa|
|00003e10| 72 61 6d 65 74 65 72 73 | 20 73 70 65 63 69 66 69 |rameters| specifi|
|00003e20| 65 64 20 62 79 20 74 68 | 65 20 75 73 65 72 2e 20 |ed by th|e user. |
|00003e30| 54 68 65 79 20 61 72 65 | 20 73 74 6f 72 65 64 20 |They are| stored |
|00003e40| 61 73 20 64 61 74 61 62 | 61 73 65 20 6f 62 6a 65 |as datab|ase obje|
|00003e50| 63 74 73 20 6f 6e 20 74 | 68 65 20 73 65 72 76 65 |cts on t|he serve|
|00003e60| 72 20 28 73 65 65 20 74 | 68 65 20 6e 65 78 74 20 |r (see t|he next |
|00003e70| 73 65 63 74 69 6f 6e 20 | 66 6f 72 20 6d 6f 72 65 |section |for more|
|00003e80| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 61 62 6f | informa|tion abo|
|00003e90| 75 74 20 64 61 74 61 62 | 61 73 65 20 6f 62 6a 65 |ut datab|ase obje|
|00003ea0| 63 74 73 29 2e 20 45 61 | 63 68 20 52 65 70 6f 72 |cts). Ea|ch Repor|
|00003eb0| 74 65 72 20 6f 62 6a 65 | 63 74 20 63 6f 6e 74 61 |ter obje|ct conta|
|00003ec0| 69 6e 73 20 69 74 73 20 | 73 65 61 72 63 68 20 71 |ins its |search q|
|00003ed0| 75 65 72 79 2c 20 69 6e | 66 6f 72 6d 61 74 69 6f |uery, in|formatio|
|00003ee0| 6e 20 73 6f 75 72 63 65 | 73 20 74 6f 20 73 65 61 |n source|s to sea|
|00003ef0| 72 63 68 2c 20 6f 74 68 | 65 72 20 73 65 61 72 63 |rch, oth|er searc|
|00003f00| 68 20 6f 70 74 69 6f 6e | 73 2c 20 61 6e 64 20 69 |h option|s, and i|
|00003f10| 74 73 20 64 65 6c 69 76 | 65 72 79 20 64 61 74 65 |ts deliv|ery date|
|00003f20| 2c 20 74 69 6d 65 20 61 | 6e 64 20 75 70 64 61 74 |, time a|nd updat|
|00003f30| 65 20 66 69 6c 65 20 64 | 65 73 74 69 6e 61 74 69 |e file d|estinati|
|00003f40| 6f 6e 2e 20 54 68 65 20 | 41 70 70 6c 65 53 65 61 |on. The |AppleSea|
|00003f50| 72 63 68 20 43 6c 69 65 | 6e 74 20 4c 69 62 72 61 |rch Clie|nt Libra|
|00003f60| 72 79 20 72 65 74 72 69 | 65 76 65 73 20 52 65 70 |ry retri|eves Rep|
|00003f70| 6f 72 74 65 72 20 6f 62 | 6a 65 63 74 20 69 6e 66 |orter ob|ject inf|
|00003f80| 6f 72 6d 61 74 69 6f 6e | 20 66 72 6f 6d 20 74 68 |ormation| from th|
|00003f90| 65 20 73 65 72 76 65 72 | 20 69 6e 20 6f 72 64 65 |e server| in orde|
|00003fa0| 72 20 74 6f 20 64 65 6c | 69 76 65 72 20 75 70 64 |r to del|iver upd|
|00003fb0| 61 74 65 73 20 6f 72 20 | 74 6f 20 61 6c 6c 6f 77 |ates or |to allow|
|00003fc0| 20 75 73 65 72 73 20 74 | 6f 20 6d 6f 64 69 66 79 | users t|o modify|
|00003fd0| 20 74 68 65 20 6f 62 6a | 65 63 74 20 69 6e 66 6f | the obj|ect info|
|00003fe0| 72 6d 61 74 69 6f 6e 2e | 0d 59 6f 75 72 20 61 70 |rmation.|.Your ap|
|00003ff0| 70 6c 69 63 61 74 69 6f | 6e 20 63 61 6e 20 75 73 |plicatio|n can us|
|00004000| 65 20 41 50 49 20 63 61 | 6c 6c 73 20 74 6f 20 61 |e API ca|lls to a|
|00004010| 64 64 2c 20 64 65 6c 65 | 74 65 2c 20 6f 72 20 6d |dd, dele|te, or m|
|00004020| 6f 64 69 66 79 20 52 65 | 70 6f 72 74 65 72 73 2c |odify Re|porters,|
|00004030| 20 6f 72 20 74 6f 20 67 | 65 74 20 52 65 70 6f 72 | or to g|et Repor|
|00004040| 74 65 72 20 6f 62 6a 65 | 63 74 73 20 66 72 6f 6d |ter obje|cts from|
|00004050| 20 61 6e 64 20 74 6f 20 | 74 68 65 20 73 65 72 76 | and to |the serv|
|00004060| 65 72 2e 20 45 61 63 68 | 20 52 65 70 6f 72 74 65 |er. Each| Reporte|
|00004070| 72 20 63 61 6e 20 62 65 | 20 61 63 74 69 76 65 20 |r can be| active |
|00004080| 6f 72 20 69 6e 61 63 74 | 69 76 65 2c 20 61 6e 64 |or inact|ive, and|
|00004090| 20 6f 6e 6c 79 20 74 68 | 6f 73 65 20 52 65 70 6f | only th|ose Repo|
|000040a0| 72 74 65 72 73 20 74 68 | 61 74 20 61 72 65 20 61 |rters th|at are a|
|000040b0| 63 74 69 76 65 20 64 65 | 6c 69 76 65 72 20 75 70 |ctive de|liver up|
|000040c0| 64 61 74 65 73 2e 20 54 | 68 65 20 61 63 74 69 76 |dates. T|he activ|
|000040d0| 65 20 66 6c 61 67 20 69 | 73 20 6f 6e 65 20 6f 66 |e flag i|s one of|
|000040e0| 20 74 68 65 20 52 65 70 | 6f 72 74 65 72 20 6f 62 | the Rep|orter ob|
|000040f0| 6a 65 63 74 20 61 74 74 | 72 69 62 75 74 65 73 20 |ject att|ributes |
|00004100| 61 6e 64 20 63 61 6e 20 | 62 65 20 73 65 74 20 62 |and can |be set b|
|00004110| 79 20 61 6e 20 41 70 70 | 6c 65 53 65 61 72 63 68 |y an App|leSearch|
|00004120| 20 6d 6f 64 69 66 79 2d | 72 65 70 6f 72 74 65 72 | modify-|reporter|
|00004130| 20 63 61 6c 6c 2e 20 0d | 53 65 72 76 65 72 20 6f | call. .|Server o|
|00004140| 62 6a 65 63 74 20 64 61 | 74 61 62 61 73 65 0d 54 |bject da|tabase.T|
|00004150| 68 65 20 41 70 70 6c 65 | 53 65 61 72 63 68 20 53 |he Apple|Search S|
|00004160| 65 72 76 65 72 20 6d 61 | 69 6e 74 61 69 6e 73 20 |erver ma|intains |
|00004170| 61 20 64 61 74 61 62 61 | 73 65 2c 20 63 61 6c 6c |a databa|se, call|
|00004180| 65 64 20 74 68 65 20 73 | 65 72 76 65 72 20 6f 62 |ed the s|erver ob|
|00004190| 6a 65 63 74 20 64 61 74 | 61 62 61 73 65 2c 20 74 |ject dat|abase, t|
|000041a0| 68 61 74 20 73 74 6f 72 | 65 73 20 61 20 6c 69 73 |hat stor|es a lis|
|000041b0| 74 20 6f 66 20 52 65 70 | 6f 72 74 65 72 73 20 61 |t of Rep|orters a|
|000041c0| 6e 64 20 6f 74 68 65 72 | 20 72 65 6c 65 76 61 6e |nd other| relevan|
|000041d0| 74 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 2e 20 59 |t inform|ation. Y|
|000041e0| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |our appl|ication |
|000041f0| 63 61 6e 20 75 73 65 20 | 74 68 69 73 20 64 61 74 |can use |this dat|
|00004200| 61 62 61 73 65 20 74 6f | 20 73 74 6f 72 65 20 63 |abase to| store c|
|00004210| 75 73 74 6f 6d 20 69 6e | 66 6f 72 6d 61 74 69 6f |ustom in|formatio|
|00004220| 6e 2e 20 41 20 73 65 74 | 20 6f 66 20 72 6f 75 74 |n. A set| of rout|
|00004230| 69 6e 65 73 20 69 73 20 | 70 72 6f 76 69 64 65 64 |ines is |provided|
|00004240| 20 74 6f 20 61 63 63 65 | 73 73 20 74 68 65 20 64 | to acce|ss the d|
|00004250| 61 74 61 62 61 73 65 2e | 20 46 6f 72 20 69 6e 73 |atabase.| For ins|
|00004260| 74 61 6e 63 65 2c 20 61 | 6e 20 61 64 64 2d 6f 62 |tance, a|n add-ob|
|00004270| 6a 65 63 74 20 63 61 6c | 6c 20 61 64 64 73 20 63 |ject cal|l adds c|
|00004280| 75 73 74 6f 6d 20 6f 62 | 6a 65 63 74 73 20 74 6f |ustom ob|jects to|
|00004290| 20 74 68 65 20 63 75 72 | 72 65 6e 74 6c 79 20 63 | the cur|rently c|
|000042a0| 6f 6e 6e 65 63 74 65 64 | 20 73 65 72 76 65 72 d5 |onnected| server.|
|000042b0| 73 20 6f 62 6a 65 63 74 | 20 64 61 74 61 62 61 73 |s object| databas|
|000042c0| 65 2c 20 61 6e 64 20 61 | 6e 20 65 6e 75 6d 65 72 |e, and a|n enumer|
|000042d0| 61 74 65 2d 6f 62 6a 65 | 63 74 73 20 63 61 6c 6c |ate-obje|cts call|
|000042e0| 20 6c 69 73 74 73 20 61 | 6c 6c 20 6f 62 6a 65 63 | lists a|ll objec|
|000042f0| 74 73 20 6f 66 20 61 20 | 73 70 65 63 69 66 69 63 |ts of a |specific|
|00004300| 20 74 79 70 65 20 69 6e | 20 74 68 65 20 64 61 74 | type in| the dat|
|00004310| 61 62 61 73 65 2e 20 41 | 20 64 61 74 61 62 61 73 |abase. A| databas|
|00004320| 65 20 6f 62 6a 65 63 74 | 20 73 74 6f 72 65 64 20 |e object| stored |
|00004330| 62 79 20 6f 6e 65 20 72 | 65 67 69 73 74 65 72 65 |by one r|egistere|
|00004340| 64 20 75 73 65 72 20 69 | 73 20 61 63 63 65 73 73 |d user i|s access|
|00004350| 69 62 6c 65 20 6f 6e 6c | 79 20 62 79 20 74 68 61 |ible onl|y by tha|
|00004360| 74 20 75 73 65 72 2e 0d | 4e 6f 74 65 3a 20 20 49 |t user..|Note: I|
|00004370| 6e 74 65 72 6e 61 6c 6c | 79 20 61 20 52 65 70 6f |nternall|y a Repo|
|00004380| 72 74 65 72 20 69 73 20 | 61 20 73 70 65 63 69 61 |rter is |a specia|
|00004390| 6c 20 6b 69 6e 64 20 6f | 66 20 6f 62 6a 65 63 74 |l kind o|f object|
|000043a0| 20 74 68 61 74 20 74 68 | 65 20 41 70 70 6c 65 53 | that th|e AppleS|
|000043b0| 65 61 72 63 68 20 43 6c | 69 65 6e 74 20 4c 69 62 |earch Cl|ient Lib|
|000043c0| 72 61 72 79 20 75 73 65 | 73 2e 20 41 6e 20 6f 62 |rary use|s. An ob|
|000043d0| 6a 65 63 74 20 69 73 20 | 61 6e 79 20 63 68 75 6e |ject is |any chun|
|000043e0| 6b 20 6f 66 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |k of inf|ormation|
|000043f0| d1 62 61 73 69 63 61 6c | 6c 79 2c 20 61 6e 20 61 |.basical|ly, an a|
|00004400| 72 72 61 79 20 6f 66 20 | 62 79 74 65 73 d1 77 69 |rray of |bytes.wi|
|00004410| 74 68 20 61 20 74 79 70 | 65 20 61 6e 64 20 49 44 |th a typ|e and ID|
|00004420| 2e 20 45 61 63 68 20 6f | 62 6a 65 63 74 20 6f 66 |. Each o|bject of|
|00004430| 20 74 68 65 20 73 61 6d | 65 20 74 79 70 65 20 69 | the sam|e type i|
|00004440| 6e 20 74 68 65 20 64 61 | 74 61 62 61 73 65 20 6d |n the da|tabase m|
|00004450| 75 73 74 20 68 61 76 65 | 20 61 20 75 6e 69 71 75 |ust have| a uniqu|
|00004460| 65 20 49 44 20 66 6f 72 | 20 65 61 63 68 20 72 65 |e ID for| each re|
|00004470| 67 69 73 74 65 72 65 64 | 20 75 73 65 72 2e 0d 0d |gistered| user...|
|00004480| 0d 0d 32 09 41 70 70 6c | 65 20 45 76 65 6e 74 73 |..2.Appl|e Events|
|00004490| 20 41 70 70 6c 69 63 61 | 74 69 6f 6e 20 50 72 6f | Applica|tion Pro|
|000044a0| 67 72 61 6d 6d 69 6e 67 | 20 49 6e 74 65 72 66 61 |gramming| Interfa|
|000044b0| 63 65 0d 54 68 69 73 20 | 63 68 61 70 74 65 72 20 |ce.This |chapter |
|000044c0| 64 65 73 63 72 69 62 65 | 73 20 74 68 65 20 41 70 |describe|s the Ap|
|000044d0| 70 6c 65 20 65 76 65 6e | 74 73 20 61 70 70 6c 69 |ple even|ts appli|
|000044e0| 63 61 74 69 6f 6e 20 70 | 72 6f 67 72 61 6d 6d 69 |cation p|rogrammi|
|000044f0| 6e 67 20 69 6e 74 65 72 | 66 61 63 65 20 28 41 50 |ng inter|face (AP|
|00004500| 49 29 20 70 72 6f 76 69 | 64 65 64 20 62 79 20 41 |I) provi|ded by A|
|00004510| 70 70 6c 65 53 65 61 72 | 63 68 2e 20 49 74 20 64 |ppleSear|ch. It d|
|00004520| 65 73 63 72 69 62 65 73 | 20 68 6f 77 20 74 6f 20 |escribes| how to |
|00004530| 75 73 65 20 74 68 65 20 | 41 50 49 20 61 6e 64 20 |use the |API and |
|00004540| 74 68 65 6e 20 67 69 76 | 65 73 20 61 20 73 75 6d |then giv|es a sum|
|00004550| 6d 61 72 79 20 6f 66 20 | 74 68 65 20 41 70 70 6c |mary of |the Appl|
|00004560| 65 20 65 76 65 6e 74 20 | 41 50 49 2e 0d 4e 6f 74 |e event |API..Not|
|00004570| 65 3a 20 20 49 6e 20 41 | 70 70 6c 65 53 65 61 72 |e: In A|ppleSear|
|00004580| 63 68 20 76 65 72 73 69 | 6f 6e 20 31 2e 30 2c 20 |ch versi|on 1.0, |
|00004590| 74 68 65 20 41 70 70 6c | 65 53 65 61 72 63 68 20 |the Appl|eSearch |
|000045a0| 43 6c 69 65 6e 74 20 75 | 73 65 73 20 41 70 70 6c |Client u|ses Appl|
|000045b0| 65 20 65 76 65 6e 74 73 | 20 61 73 20 61 20 70 72 |e events| as a pr|
|000045c0| 69 76 61 74 65 2c 20 69 | 6e 74 65 72 61 70 70 6c |ivate, i|nterappl|
|000045d0| 69 63 61 74 69 6f 6e 20 | 74 72 61 6e 73 70 6f 72 |ication |transpor|
|000045e0| 74 20 6d 65 63 68 61 6e | 69 73 6d 20 66 6f 72 20 |t mechan|ism for |
|000045f0| 61 63 63 65 73 73 69 6e | 67 20 74 68 65 20 41 70 |accessin|g the Ap|
|00004600| 70 6c 65 53 65 61 72 63 | 68 20 43 6f 6d 6d 75 6e |pleSearc|h Commun|
|00004610| 69 63 61 74 69 6f 6e 20 | 45 78 74 65 6e 73 69 6f |ication |Extensio|
|00004620| 6e 20 41 50 49 2e 20 54 | 68 75 73 2c 20 41 70 70 |n API. T|hus, App|
|00004630| 6c 65 53 65 61 72 63 68 | 20 64 6f 65 73 20 6e 6f |leSearch| does no|
|00004640| 74 20 73 75 70 70 6f 72 | 74 20 74 68 65 20 4f 62 |t suppor|t the Ob|
|00004650| 6a 65 63 74 20 53 75 70 | 70 6f 72 74 20 4c 69 62 |ject Sup|port Lib|
|00004660| 72 61 72 79 2c 20 6e 6f | 72 20 64 6f 65 73 20 69 |rary, no|r does i|
|00004670| 74 20 65 73 74 61 62 6c | 69 73 68 20 61 20 73 74 |t establ|ish a st|
|00004680| 61 6e 64 61 72 64 20 69 | 6e 66 6f 72 6d 61 74 69 |andard i|nformati|
|00004690| 6f 6e 20 61 63 63 65 73 | 73 20 73 75 69 74 65 2e |on acces|s suite.|
|000046a0| 0d 53 65 6e 64 69 6e 67 | 20 61 6e 64 20 72 65 63 |.Sending| and rec|
|000046b0| 65 69 76 69 6e 67 20 41 | 70 70 6c 65 53 65 61 72 |eiving A|ppleSear|
|000046c0| 63 68 20 41 70 70 6c 65 | 20 65 76 65 6e 74 73 0d |ch Apple| events.|
|000046d0| 45 61 63 68 20 41 70 70 | 6c 65 53 65 61 72 63 68 |Each App|leSearch|
|000046e0| 20 72 65 71 75 65 73 74 | 20 69 73 20 61 6e 20 41 | request| is an A|
|000046f0| 70 70 6c 65 20 65 76 65 | 6e 74 20 74 68 61 74 20 |pple eve|nt that |
|00004700| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00004710| 20 6d 75 73 74 20 73 65 | 6e 64 20 74 6f 20 74 68 | must se|nd to th|
|00004720| 65 20 41 70 70 6c 65 53 | 65 61 72 63 68 20 43 6f |e AppleS|earch Co|
|00004730| 6d 6d 75 6e 69 63 61 74 | 69 6f 6e 20 45 78 74 65 |mmunicat|ion Exte|
|00004740| 6e 73 69 6f 6e 2e 20 59 | 6f 75 20 63 61 6e 20 73 |nsion. Y|ou can s|
|00004750| 70 65 63 69 66 79 20 74 | 68 65 20 41 70 70 6c 65 |pecify t|he Apple|
|00004760| 53 65 61 72 63 68 20 43 | 6f 6d 6d 75 6e 69 63 61 |Search C|ommunica|
|00004770| 74 69 6f 6e 20 45 78 74 | 65 6e 73 69 6f 6e 20 62 |tion Ext|ension b|
|00004780| 79 20 69 74 73 20 63 72 | 65 61 74 6f 72 20 74 79 |y its cr|eator ty|
|00004790| 70 65 2c 20 77 68 69 63 | 68 20 69 73 20 6b 41 70 |pe, whic|h is kAp|
|000047a0| 70 6c 65 53 65 61 72 63 | 68 43 6f 6d 6d 75 6e 69 |pleSearc|hCommuni|
|000047b0| 63 61 74 69 6f 6e 53 69 | 67 6e 61 74 75 72 65 2e |cationSi|gnature.|
|000047c0| 20 54 68 65 20 65 76 65 | 6e 74 20 63 6c 61 73 73 | The eve|nt class|
|000047d0| 20 6f 66 20 74 68 65 20 | 72 65 71 75 65 73 74 20 | of the |request |
|000047e0| 73 68 6f 75 6c 64 20 62 | 65 20 6b 41 70 70 6c 65 |should b|e kApple|
|000047f0| 53 65 61 72 63 68 52 65 | 71 75 65 73 74 2e 20 59 |SearchRe|quest. Y|
|00004800| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |our appl|ication |
|00004810| 63 61 6e 20 73 65 6e 64 | 20 69 74 20 69 6e 20 61 |can send| it in a|
|00004820| 6e 79 20 6d 6f 64 65 20 | 79 6f 75 20 70 72 65 66 |ny mode |you pref|
|00004830| 65 72 d1 66 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |er.for e|xample, |
|00004840| 6b 41 45 51 75 65 75 65 | 52 65 70 6c 79 20 6f 72 |kAEQueue|Reply or|
|00004850| 20 6b 41 45 57 61 69 74 | 52 65 70 6c 79 2e 20 42 | kAEWait|Reply. B|
|00004860| 6f 74 68 20 74 68 65 20 | 63 72 65 61 74 6f 72 20 |oth the |creator |
|00004870| 74 79 70 65 20 61 6e 64 | 20 65 76 65 6e 74 20 63 |type and| event c|
|00004880| 6c 61 73 73 20 61 72 65 | 20 64 65 66 69 6e 65 64 |lass are| defined|
|00004890| 20 69 6e 20 74 68 65 20 | 68 65 61 64 65 72 20 66 | in the |header f|
|000048a0| 69 6c 65 20 41 70 70 6c | 65 53 65 61 72 63 68 41 |ile Appl|eSearchA|
|000048b0| 45 41 50 49 2e 68 2e 20 | 0d 57 68 65 6e 20 74 68 |EAPI.h. |.When th|
|000048c0| 65 20 41 70 70 6c 65 53 | 65 61 72 63 68 20 43 6f |e AppleS|earch Co|
|000048d0| 6d 6d 75 6e 69 63 61 74 | 69 6f 6e 20 45 78 74 65 |mmunicat|ion Exte|
|000048e0| 6e 73 69 6f 6e 20 72 65 | 63 65 69 76 65 73 20 61 |nsion re|ceives a|
|000048f0| 20 72 65 71 75 65 73 74 | 20 66 72 6f 6d 20 79 6f | request| from yo|
|00004900| 75 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2c 20 |ur appli|cation, |
|00004910| 69 74 20 73 65 6e 64 73 | 20 61 20 72 65 71 75 65 |it sends| a reque|
|00004920| 73 74 20 74 6f 20 61 20 | 73 65 72 76 65 72 20 61 |st to a |server a|
|00004930| 73 79 6e 63 68 72 6f 6e | 6f 75 73 6c 79 2e 20 57 |synchron|ously. W|
|00004940| 68 65 6e 20 61 20 72 65 | 70 6c 79 20 63 6f 6d 65 |hen a re|ply come|
|00004950| 73 20 62 61 63 6b 20 66 | 72 6f 6d 20 74 68 65 20 |s back f|rom the |
|00004960| 73 65 72 76 65 72 2c 20 | 74 68 65 20 41 70 70 6c |server, |the Appl|
|00004970| 65 53 65 61 72 63 68 20 | 43 6f 6d 6d 75 6e 69 63 |eSearch |Communic|
|00004980| 61 74 69 6f 6e 20 45 78 | 74 65 6e 73 69 6f 6e 20 |ation Ex|tension |
|00004990| 73 65 6e 64 73 20 61 20 | 72 65 70 6c 79 20 41 70 |sends a |reply Ap|
|000049a0| 70 6c 65 20 65 76 65 6e | 74 20 62 61 63 6b 20 74 |ple even|t back t|
|000049b0| 6f 20 79 6f 75 72 20 61 | 70 70 6c 69 63 61 74 69 |o your a|pplicati|
|000049c0| 6f 6e 2e 0d 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |on..For |example,|
|000049d0| 20 74 6f 20 63 6f 6e 64 | 75 63 74 20 61 6e 20 69 | to cond|uct an i|
|000049e0| 6d 6d 65 64 69 61 74 65 | 20 73 65 61 72 63 68 20 |mmediate| search |
|000049f0| 79 6f 75 20 6e 65 65 64 | 20 74 6f 20 73 65 6e 64 |you need| to send|
|00004a00| 20 61 6e 20 41 70 70 6c | 65 20 65 76 65 6e 74 20 | an Appl|e event |
|00004a10| 6f 66 20 65 76 65 6e 74 | 20 63 6c 61 73 73 20 6b |of event| class k|
|00004a20| 41 70 70 6c 65 53 65 61 | 72 63 68 52 65 71 75 65 |AppleSea|rchReque|
|00004a30| 73 74 20 61 6e 64 20 65 | 76 65 6e 74 20 49 44 20 |st and e|vent ID |
|00004a40| 6b 41 45 41 53 53 65 61 | 72 63 68 20 77 69 74 68 |kAEASSea|rch with|
|00004a50| 20 61 70 70 72 6f 70 72 | 69 61 74 65 20 70 61 72 | appropr|iate par|
|00004a60| 61 6d 65 74 65 72 73 2e | 20 54 68 65 20 41 70 70 |ameters.| The App|
|00004a70| 6c 65 53 65 61 72 63 68 | 20 43 6f 6d 6d 75 6e 69 |leSearch| Communi|
|00004a80| 63 61 74 69 6f 6e 20 45 | 78 74 65 6e 73 69 6f 6e |cation E|xtension|
|00004a90| 20 70 61 63 6b 61 67 65 | 73 20 74 68 65 20 73 65 | package|s the se|
|00004aa0| 61 72 63 68 20 70 61 72 | 61 6d 65 74 65 72 73 20 |arch par|ameters |
|00004ab0| 69 6e 74 6f 20 61 6e 20 | 61 70 70 72 6f 70 72 69 |into an |appropri|
|00004ac0| 61 74 65 20 70 61 72 61 | 6d 65 74 65 72 20 62 6c |ate para|meter bl|
|00004ad0| 6f 63 6b 20 61 6e 64 20 | 74 68 65 6e 20 73 65 6e |ock and |then sen|
|00004ae0| 64 73 20 61 20 73 65 61 | 72 63 68 20 72 65 71 75 |ds a sea|rch requ|
|00004af0| 65 73 74 20 74 6f 20 74 | 68 65 20 73 65 72 76 65 |est to t|he serve|
|00004b00| 72 2e 20 41 66 74 65 72 | 20 74 68 65 20 73 65 72 |r. After| the ser|
|00004b10| 76 65 72 20 72 65 73 70 | 6f 6e 64 73 20 74 6f 20 |ver resp|onds to |
|00004b20| 74 68 65 20 72 65 71 75 | 65 73 74 2c 20 61 20 72 |the requ|est, a r|
|00004b30| 65 70 6c 79 20 6f 66 20 | 65 76 65 6e 74 20 63 6c |eply of |event cl|
|00004b40| 61 73 73 20 6b 43 6f 72 | 65 45 76 65 6e 74 43 6c |ass kCor|eEventCl|
|00004b50| 61 73 73 20 61 6e 64 20 | 65 76 65 6e 74 20 49 44 |ass and |event ID|
|00004b60| 20 6b 41 45 41 6e 73 77 | 65 72 2c 20 77 68 69 63 | kAEAnsw|er, whic|
|00004b70| 68 20 63 6f 6e 74 61 69 | 6e 73 20 61 20 73 65 61 |h contai|ns a sea|
|00004b80| 72 63 68 20 72 65 73 75 | 6c 74 2c 20 77 69 6c 6c |rch resu|lt, will|
|00004b90| 20 62 65 20 72 65 74 75 | 72 6e 65 64 2e 0d 54 68 | be retu|rned..Th|
|00004ba0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 64 69 61 67 |e follow|ing diag|
|00004bb0| 72 61 6d 20 73 68 6f 77 | 73 20 74 68 65 20 72 65 |ram show|s the re|
|00004bc0| 6c 61 74 69 6f 6e 73 68 | 69 70 20 62 65 74 77 65 |lationsh|ip betwe|
|00004bd0| 65 6e 20 61 6e 20 41 70 | 70 6c 65 53 65 61 72 63 |en an Ap|pleSearc|
|00004be0| 68 20 72 65 71 75 65 73 | 74 20 61 6e 64 20 69 74 |h reques|t and it|
|00004bf0| 73 20 72 65 70 6c 69 65 | 73 2e 0d 54 68 65 20 41 |s replie|s..The A|
|00004c00| 70 70 6c 65 53 65 61 72 | 63 68 20 43 6f 6d 6d 75 |ppleSear|ch Commu|
|00004c10| 6e 69 63 61 74 69 6f 6e | 20 45 78 74 65 6e 73 69 |nication| Extensi|
|00004c20| 6f 6e 0d 54 68 65 20 41 | 70 70 6c 65 53 65 61 72 |on.The A|ppleSear|
|00004c30| 63 68 20 43 6f 6d 6d 75 | 6e 69 63 61 74 69 6f 6e |ch Commu|nication|
|00004c40| 20 45 78 74 65 6e 73 69 | 6f 6e 20 69 73 20 61 20 | Extensi|on is a |
|00004c50| 62 61 63 6b 67 72 6f 75 | 6e 64 2d 6f 6e 6c 79 20 |backgrou|nd-only |
|00004c60| 70 72 6f 63 65 73 73 20 | 74 68 61 74 20 72 65 63 |process |that rec|
|00004c70| 65 69 76 65 73 20 41 70 | 70 6c 65 20 65 76 65 6e |eives Ap|ple even|
|00004c80| 74 73 20 66 72 6f 6d 20 | 61 6e 6f 74 68 65 72 20 |ts from |another |
|00004c90| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 28 73 75 63 |applicat|ion (suc|
|00004ca0| 68 20 61 73 20 79 6f 75 | 72 20 63 75 73 74 6f 6d |h as you|r custom|
|00004cb0| 20 63 6c 69 65 6e 74 29 | 20 61 6e 64 20 69 6e 20 | client)| and in |
|00004cc0| 74 75 72 6e 20 63 6f 6d | 6d 75 6e 69 63 61 74 65 |turn com|municate|
|00004cd0| 73 20 77 69 74 68 20 61 | 6e 20 41 70 70 6c 65 53 |s with a|n AppleS|
|00004ce0| 65 61 72 63 68 20 73 65 | 72 76 65 72 2e 20 46 6f |earch se|rver. Fo|
|00004cf0| 72 20 65 78 61 6d 70 6c | 65 2c 20 77 68 65 6e 20 |r exampl|e, when |
|00004d00| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00004d10| 20 73 65 6e 64 73 20 61 | 20 53 65 61 72 63 68 20 | sends a| Search |
|00004d20| 65 76 65 6e 74 20 74 6f | 20 74 68 65 20 41 70 70 |event to| the App|
|00004d30| 6c 65 53 65 61 72 63 68 | 20 43 6f 6d 6d 75 6e 69 |leSearch| Communi|
|00004d40| 63 61 74 69 6f 6e 20 45 | 78 74 65 6e 73 69 6f 6e |cation E|xtension|
|00004d50| 2c 20 69 74 20 63 68 65 | 63 6b 73 20 70 61 72 61 |, it che|cks para|
|00004d60| 6d 65 74 65 72 73 20 61 | 6e 64 20 74 68 65 6e 20 |meters a|nd then |
|00004d70| 69 73 73 75 65 73 20 61 | 20 73 65 61 72 63 68 20 |issues a| search |
|00004d80| 72 65 71 75 65 73 74 20 | 74 6f 20 74 68 65 20 73 |request |to the s|
|00004d90| 65 72 76 65 72 20 69 74 | 20 69 73 20 6c 6f 67 67 |erver it| is logg|
|00004da0| 65 64 20 6f 6e 20 74 6f | 20 75 73 69 6e 67 20 74 |ed on to| using t|
|00004db0| 68 65 20 41 70 70 6c 65 | 53 65 61 72 63 68 20 43 |he Apple|Search C|
|00004dc0| 6c 69 65 6e 74 2f 53 65 | 72 76 65 72 20 70 72 6f |lient/Se|rver pro|
|00004dd0| 74 6f 63 6f 6c 2e 20 57 | 68 65 6e 20 61 20 72 65 |tocol. W|hen a re|
|00004de0| 70 6c 79 20 63 6f 6d 65 | 73 20 62 61 63 6b 20 66 |ply come|s back f|
|00004df0| 72 6f 6d 20 74 68 65 20 | 73 65 72 76 65 72 2c 20 |rom the |server, |
|00004e00| 74 68 65 20 41 70 70 6c | 65 53 65 61 72 63 68 20 |the Appl|eSearch |
|00004e10| 43 6f 6d 6d 75 6e 69 63 | 61 74 69 6f 6e 20 45 78 |Communic|ation Ex|
|00004e20| 74 65 6e 73 69 6f 6e 20 | 73 65 6e 64 73 20 61 20 |tension |sends a |
|00004e30| 73 65 61 72 63 68 20 72 | 65 70 6c 79 20 65 76 65 |search r|eply eve|
|00004e40| 6e 74 20 62 61 63 6b 20 | 74 6f 20 79 6f 75 72 20 |nt back |to your |
|00004e50| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2e 20 49 6e 20 |applicat|ion. In |
|00004e60| 65 73 73 65 6e 63 65 2c | 20 74 68 65 20 41 70 70 |essence,| the App|
|00004e70| 6c 65 53 65 61 72 63 68 | 20 43 6f 6d 6d 75 6e 69 |leSearch| Communi|
|00004e80| 63 61 74 69 6f 6e 20 45 | 78 74 65 6e 73 69 6f 6e |cation E|xtension|
|00004e90| 20 61 70 70 65 61 72 73 | 20 61 73 20 61 20 73 65 | appears| as a se|
|00004ea0| 72 76 65 72 20 74 6f 20 | 79 6f 75 72 20 61 70 70 |rver to |your app|
|00004eb0| 6c 69 63 61 74 69 6f 6e | 2e 0d 42 65 66 6f 72 65 |lication|..Before|
|00004ec0| 20 73 65 6e 64 69 6e 67 | 20 61 6e 79 20 41 70 70 | sending| any App|
|00004ed0| 6c 65 20 65 76 65 6e 74 | 20 74 6f 20 74 68 65 20 |le event| to the |
|00004ee0| 41 70 70 6c 65 53 65 61 | 72 63 68 20 43 6f 6d 6d |AppleSea|rch Comm|
|00004ef0| 75 6e 69 63 61 74 69 6f | 6e 20 45 78 74 65 6e 73 |unicatio|n Extens|
|00004f00| 69 6f 6e 2c 20 79 6f 75 | 72 20 61 70 70 6c 69 63 |ion, you|r applic|
|00004f10| 61 74 69 6f 6e 20 6d 75 | 73 74 20 66 69 72 73 74 |ation mu|st first|
|00004f20| 20 63 68 65 63 6b 20 74 | 6f 20 73 65 65 20 69 66 | check t|o see if|
|00004f30| 20 74 68 65 20 65 78 74 | 65 6e 73 69 6f 6e 20 69 | the ext|ension i|
|00004f40| 73 20 61 6c 72 65 61 64 | 79 20 72 75 6e 6e 69 6e |s alread|y runnin|
|00004f50| 67 2e 20 49 66 20 6e 6f | 74 2c 20 79 6f 75 72 20 |g. If no|t, your |
|00004f60| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 6e 65 65 64 |applicat|ion need|
|00004f70| 73 20 74 6f 20 66 69 6e | 64 20 69 74 20 61 6e 64 |s to fin|d it and|
|00004f80| 20 6c 61 75 6e 63 68 20 | 69 74 2e 20 53 69 6e 63 | launch |it. Sinc|
|00004f90| 65 20 74 68 65 20 41 70 | 70 6c 65 53 65 61 72 63 |e the Ap|pleSearc|
|00004fa0| 68 20 43 6f 6d 6d 75 6e | 69 63 61 74 69 6f 6e 20 |h Commun|ication |
|00004fb0| 45 78 74 65 6e 73 69 6f | 6e 20 69 73 20 61 20 73 |Extensio|n is a s|
|00004fc0| 79 73 74 65 6d 20 65 78 | 74 65 6e 73 69 6f 6e 2c |ystem ex|tension,|
|00004fd0| 20 69 74 20 63 61 6e 20 | 62 65 20 66 6f 75 6e 64 | it can |be found|
|00004fe0| 20 69 6e 20 74 68 65 20 | 45 78 74 65 6e 73 69 6f | in the |Extensio|
|00004ff0| 6e 73 20 66 6f 6c 64 65 | 72 2e 20 59 6f 75 72 20 |ns folde|r. Your |
|00005000| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 63 61 6e 20 |applicat|ion can |
|00005010| 66 69 6e 64 20 69 74 20 | 62 79 20 6d 61 6b 69 6e |find it |by makin|
|00005020| 67 20 61 20 50 42 43 61 | 74 53 65 61 72 63 68 20 |g a PBCa|tSearch |
|00005030| 63 61 6c 6c 20 77 69 74 | 68 20 74 68 65 20 41 70 |call wit|h the Ap|
|00005040| 70 6c 65 53 65 61 72 63 | 68 20 43 6f 6d 6d 75 6e |pleSearc|h Commun|
|00005050| 69 63 61 74 69 6f 6e 20 | 45 78 74 65 6e 73 69 6f |ication |Extensio|
|00005060| 6e d5 73 20 63 72 65 61 | 74 6f 72 20 74 79 70 65 |n.s crea|tor type|
|00005070| 20 61 6e 64 20 45 78 74 | 65 6e 73 69 6f 6e 73 20 | and Ext|ensions |
|00005080| 66 6f 6c 64 65 72 20 61 | 73 20 74 68 65 20 70 61 |folder a|s the pa|
|00005090| 72 65 6e 74 20 64 69 72 | 65 63 74 6f 72 79 2e 20 |rent dir|ectory. |
|000050a0| 54 68 65 6e 2c 20 79 6f | 75 20 63 61 6e 20 6d 61 |Then, yo|u can ma|
|000050b0| 6b 65 20 61 6e 20 46 53 | 53 70 65 63 20 6f 75 74 |ke an FS|Spec out|
|000050c0| 20 6f 66 20 74 68 65 20 | 43 61 74 53 65 61 72 63 | of the |CatSearc|
|000050d0| 68 20 70 61 72 61 6d 65 | 74 65 72 20 62 6c 6f 63 |h parame|ter bloc|
|000050e0| 6b 20 61 6e 64 20 75 73 | 65 20 69 74 20 69 6e 20 |k and us|e it in |
|000050f0| 74 68 65 20 4c 61 75 6e | 63 68 41 70 70 6c 69 63 |the Laun|chApplic|
|00005100| 61 74 69 6f 6e 20 74 72 | 61 70 2e 20 57 68 65 6e |ation tr|ap. When|
|00005110| 20 6c 61 75 6e 63 68 65 | 64 2c 20 74 68 65 20 41 | launche|d, the A|
|00005120| 70 70 6c 65 53 65 61 72 | 63 68 20 43 6f 6d 6d 75 |ppleSear|ch Commu|
|00005130| 6e 69 63 61 74 69 6f 6e | 20 45 78 74 65 6e 73 69 |nication| Extensi|
|00005140| 6f 6e 20 61 75 74 6f 6d | 61 74 69 63 61 6c 6c 79 |on autom|atically|
|00005150| 20 62 72 69 6e 67 73 20 | 75 70 20 74 68 65 20 50 | brings |up the P|
|00005160| 50 43 42 72 6f 77 73 65 | 72 20 64 69 61 6c 6f 67 |PCBrowse|r dialog|
|00005170| 20 62 6f 78 2c 20 70 72 | 6f 6d 70 74 69 6e 67 20 | box, pr|ompting |
|00005180| 74 68 65 20 75 73 65 72 | 20 74 6f 20 73 65 6c 65 |the user| to sele|
|00005190| 63 74 20 61 6e 20 41 70 | 70 6c 65 53 65 61 72 63 |ct an Ap|pleSearc|
|000051a0| 68 20 73 65 72 76 65 72 | 20 74 6f 20 63 6f 6e 6e |h server| to conn|
|000051b0| 65 63 74 20 74 6f 2e 20 | 49 66 20 74 68 65 20 75 |ect to. |If the u|
|000051c0| 73 65 72 20 69 73 20 73 | 75 63 63 65 73 73 66 75 |ser is s|uccessfu|
|000051d0| 6c 6c 79 20 61 75 74 68 | 65 6e 74 69 63 61 74 65 |lly auth|enticate|
|000051e0| 64 2c 20 61 20 73 65 73 | 73 69 6f 6e 20 69 73 20 |d, a ses|sion is |
|000051f0| 65 73 74 61 62 6c 69 73 | 68 65 64 20 62 65 74 77 |establis|hed betw|
|00005200| 65 65 6e 20 74 68 65 20 | 63 6c 69 65 6e 74 20 61 |een the |client a|
|00005210| 6e 64 20 74 68 65 20 73 | 65 72 76 65 72 2e 20 49 |nd the s|erver. I|
|00005220| 66 20 74 68 65 20 75 73 | 65 72 20 64 69 64 20 6e |f the us|er did n|
|00005230| 6f 74 20 63 6f 6e 6e 65 | 63 74 20 74 6f 20 74 68 |ot conne|ct to th|
|00005240| 65 20 73 65 72 76 65 72 | 20 70 72 6f 70 65 72 6c |e server| properl|
|00005250| 79 2c 20 74 68 65 20 41 | 70 70 6c 65 53 65 61 72 |y, the A|ppleSear|
|00005260| 63 68 20 43 6f 6d 6d 75 | 6e 69 63 61 74 69 6f 6e |ch Commu|nication|
|00005270| 20 45 78 74 65 6e 73 69 | 6f 6e 20 73 65 6e 64 73 | Extensi|on sends|
|00005280| 20 61 6e 20 65 72 72 6f | 72 20 6d 65 73 73 61 67 | an erro|r messag|
|00005290| 65 20 74 6f 20 79 6f 75 | 72 20 61 70 70 6c 69 63 |e to you|r applic|
|000052a0| 61 74 69 6f 6e 20 61 6e | 64 20 71 75 69 74 73 2e |ation an|d quits.|
|000052b0| 0d 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 73 |.The fol|lowing s|
|000052c0| 61 6d 70 6c 65 20 63 6f | 64 65 20 64 65 6d 6f 6e |ample co|de demon|
|000052d0| 73 74 72 61 74 65 73 20 | 68 6f 77 20 74 6f 20 66 |strates |how to f|
|000052e0| 69 6e 64 20 61 6e 64 20 | 6c 61 75 6e 63 68 20 74 |ind and |launch t|
|000052f0| 68 65 20 41 70 70 6c 65 | 53 65 61 72 63 68 20 43 |he Apple|Search C|
|00005300| 6f 6d 6d 75 6e 69 63 61 | 74 69 6f 6e 20 45 78 74 |ommunica|tion Ext|
|00005310| 65 6e 73 69 6f 6e 20 66 | 72 6f 6d 20 79 6f 75 72 |ension f|rom your|
|00005320| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 3a 0d 2f 2f | applica|tion:.//|
|00005330| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005340| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005350| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005360| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005370| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 0d 2f 2f 20 |________|____.// |
|00005380| 46 75 6e 63 74 69 6f 6e | 3a 20 20 20 20 20 20 4c |Function|: L|
|00005390| 61 75 6e 63 68 41 53 43 | 6f 6d 6d 75 6e 69 63 61 |aunchASC|ommunica|
|000053a0| 74 69 6f 6e 0d 2f 2f 20 | 41 62 73 74 72 61 63 74 |tion.// |Abstract|
|000053b0| 3a 20 20 20 20 20 20 44 | 65 74 65 72 6d 69 6e 65 |: D|etermine|
|000053c0| 73 20 69 66 20 74 68 65 | 20 41 70 70 6c 65 53 65 |s if the| AppleSe|
|000053d0| 61 72 63 68 20 43 6f 6d | 6d 75 6e 69 63 61 74 69 |arch Com|municati|
|000053e0| 6f 6e 20 65 78 74 65 6e | 73 69 6f 6e 20 69 73 20 |on exten|sion is |
|000053f0| 0d 2f 2f 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.// | |
|00005400| 20 20 20 72 75 6e 6e 69 | 6e 67 2e 20 20 49 66 20 | runni|ng. If |
|00005410| 69 74 20 69 73 20 6e 6f | 74 20 79 65 74 20 72 75 |it is no|t yet ru|
|00005420| 6e 6e 69 6e 67 2c 20 69 | 74 20 74 72 69 65 73 20 |nning, i|t tries |
|00005430| 74 6f 20 6c 61 75 6e 63 | 68 20 69 74 2e 0d 2f 2f |to launc|h it..//|
|00005440| 20 50 61 72 61 6d 65 74 | 65 72 73 3a 20 20 20 20 | Paramet|ers: |
|00005450| 69 73 52 75 6e 6e 69 6e | 67 20 2d 20 54 68 69 73 |isRunnin|g - This|
|00005460| 20 76 61 6c 75 65 20 67 | 65 74 73 20 73 65 74 20 | value g|ets set |
|00005470| 74 6f 20 74 72 75 65 20 | 69 66 20 74 68 65 20 65 |to true |if the e|
|00005480| 78 74 65 6e 73 69 6f 6e | 20 69 73 0d 2f 2f 20 20 |xtension| is.// |
|00005490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 61 6c | | al|
|000054a0| 72 65 61 64 79 20 72 75 | 6e 6e 69 6e 67 2c 20 6f |ready ru|nning, o|
|000054b0| 72 20 69 74 20 77 61 73 | 20 73 75 63 63 65 73 73 |r it was| success|
|000054c0| 66 75 6c 6c 79 20 6c 61 | 75 6e 63 68 65 64 20 62 |fully la|unched b|
|000054d0| 79 20 74 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 2e |y this f|unction.|
|000054e0| 0d 2f 2f 20 52 65 74 75 | 72 6e 73 3a 20 20 20 20 |.// Retu|rns: |
|000054f0| 20 20 20 4f 53 45 72 72 | 20 2d 20 49 66 20 74 68 | OSErr| - If th|
|00005500| 65 20 65 78 74 65 6e 73 | 69 6f 6e 20 77 61 73 6e |e extens|ion wasn|
|00005510| 27 74 20 61 6c 72 65 61 | 64 79 20 72 75 6e 6e 69 |'t alrea|dy runni|
|00005520| 6e 67 20 61 6e 64 20 74 | 68 65 20 61 74 74 65 6d |ng and t|he attem|
|00005530| 70 74 0d 2f 2f 20 20 20 | 20 20 20 20 20 20 20 20 |pt.// | |
|00005540| 20 20 20 20 20 74 6f 20 | 6c 61 75 6e 63 68 20 66 | to |launch f|
|00005550| 61 69 6c 65 64 2c 20 74 | 68 65 20 65 72 72 6f 72 |ailed, t|he error|
|00005560| 20 63 6f 64 65 20 66 72 | 6f 6d 20 74 68 65 20 61 | code fr|om the a|
|00005570| 74 74 65 6d 70 74 20 69 | 73 20 72 65 74 75 72 6e |ttempt i|s return|
|00005580| 65 64 2e 0d 2f 2f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |ed..//__|________|
|00005590| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000055a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000055b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000055c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000055d0| 5f 5f 0d 4f 53 45 72 72 | 20 4c 61 75 6e 63 68 41 |__.OSErr| LaunchA|
|000055e0| 53 43 6f 6d 6d 75 6e 69 | 63 61 74 69 6f 6e 28 20 |SCommuni|cation( |
|000055f0| 42 6f 6f 6c 65 61 6e 2a | 20 69 73 52 75 6e 6e 69 |Boolean*| isRunni|
|00005600| 6e 67 20 29 0d 7b 0d 20 | 20 20 4f 53 45 72 72 20 |ng ).{. | OSErr |
|00005610| 20 20 20 20 20 20 20 20 | 20 20 20 20 65 72 72 20 | | err |
|00005620| 3d 20 6e 6f 45 72 72 3b | 0d 20 20 20 63 6f 6e 73 |= noErr;|. cons|
|00005630| 74 20 4f 53 54 79 70 65 | 20 20 20 20 20 20 6b 41 |t OSType| kA|
|00005640| 53 43 6f 6d 6d 75 6e 69 | 63 61 74 69 6f 6e 53 69 |SCommuni|cationSi|
|00005650| 67 6e 61 74 75 72 65 20 | 3d 20 27 62 67 64 70 27 |gnature |= 'bgdp'|
|00005660| 3b 0d 0d 20 20 20 69 66 | 20 28 20 41 70 70 6c 69 |;.. if| ( Appli|
|00005670| 63 61 74 69 6f 6e 49 73 | 52 75 6e 6e 69 6e 67 28 |cationIs|Running(|
|00005680| 20 6b 41 53 43 6f 6d 6d | 75 6e 69 63 61 74 69 6f | kASComm|unicatio|
|00005690| 6e 53 69 67 6e 61 74 75 | 72 65 20 29 20 29 20 7b |nSignatu|re ) ) {|
|000056a0| 0d 20 20 20 20 20 20 20 | 20 2a 69 73 52 75 6e 6e |. | *isRunn|
|000056b0| 69 6e 67 20 3d 20 74 72 | 75 65 3b 0d 20 20 20 7d |ing = tr|ue;. }|
|000056c0| 0d 20 20 20 65 6c 73 65 | 20 7b 0d 20 20 20 20 20 |. else| {. |
|000056d0| 65 72 72 20 3d 20 4c 61 | 75 6e 63 68 4d 79 45 78 |err = La|unchMyEx|
|000056e0| 74 65 6e 73 69 6f 6e 28 | 20 6b 41 53 43 6f 6d 6d |tension(| kASComm|
|000056f0| 75 6e 69 63 61 74 69 6f | 6e 53 69 67 6e 61 74 75 |unicatio|nSignatu|
|00005700| 72 65 20 29 3b 0d 20 20 | 20 20 20 2a 69 73 52 75 |re );. | *isRu|
|00005710| 6e 6e 69 6e 67 20 3d 20 | 28 20 65 72 72 20 3d 3d |nning = |( err ==|
|00005720| 20 6e 6f 45 72 72 20 29 | 3b 0d 20 20 20 7d 0d 20 | noErr )|;. }. |
|00005730| 20 20 72 65 74 75 72 6e | 20 65 72 72 3b 0d 7d 0d | return| err;.}.|
|00005740| 0d 2f 2f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |.//_____|________|
|00005750| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005760| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005770| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005780| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 0d |________|_______.|
|00005790| 2f 2f 20 46 75 6e 63 74 | 69 6f 6e 3a 20 20 20 20 |// Funct|ion: |
|000057a0| 20 20 41 70 70 6c 69 63 | 61 74 69 6f 6e 49 73 52 | Applic|ationIsR|
|000057b0| 75 6e 6e 69 6e 67 0d 2f | 2f 20 41 62 73 74 72 61 |unning./|/ Abstra|
|000057c0| 63 74 3a 20 20 20 20 20 | 20 44 65 74 65 72 6d 69 |ct: | Determi|
|000057d0| 6e 65 20 69 66 20 74 68 | 65 20 73 70 65 63 69 66 |ne if th|e specif|
|000057e0| 69 65 64 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |ied appl|ication |
|000057f0| 69 73 20 72 75 6e 6e 69 | 6e 67 20 6f 6e 20 74 68 |is runni|ng on th|
|00005800| 69 73 20 4d 61 63 2e 0d | 2f 2f 20 50 61 72 61 6d |is Mac..|// Param|
|00005810| 65 74 65 72 73 3a 20 20 | 20 20 73 69 67 6e 61 74 |eters: | signat|
|00005820| 75 72 65 20 2d 20 54 68 | 65 20 63 72 65 61 74 6f |ure - Th|e creato|
|00005830| 72 20 73 69 67 6e 61 74 | 75 72 65 20 6f 66 20 74 |r signat|ure of t|
|00005840| 68 65 20 64 65 73 69 72 | 65 64 20 61 70 70 6c 69 |he desir|ed appli|
|00005850| 63 61 74 69 6f 6e 0d 2f | 2f 20 52 65 74 75 72 6e |cation./|/ Return|
|00005860| 73 3a 20 20 20 20 20 20 | 20 42 6f 6f 6c 65 61 6e |s: | Boolean|
|00005870| 20 2d 20 54 72 75 65 20 | 69 66 20 74 68 65 20 70 | - True |if the p|
|00005880| 72 6f 63 65 73 73 20 73 | 70 65 63 69 66 69 65 64 |rocess s|pecified|
|00005890| 20 62 79 20 74 68 65 20 | 73 69 67 6e 61 74 75 72 | by the |signatur|
|000058a0| 65 20 69 73 0d 2f 2f 20 | 20 20 20 20 20 20 20 20 |e is.// | |
|000058b0| 20 20 20 20 20 20 20 72 | 75 6e 6e 69 6e 67 2c 20 | r|unning, |
|000058c0| 66 61 6c 73 65 20 69 66 | 20 6e 6f 20 70 72 6f 63 |false if| no proc|
|000058d0| 65 73 73 20 77 69 74 68 | 20 74 68 61 74 20 73 69 |ess with| that si|
|000058e0| 67 6e 61 74 75 72 65 20 | 63 6f 75 6c 64 20 62 65 |gnature |could be|
|000058f0| 20 66 6f 75 6e 64 2e 0d | 2f 2f 5f 5f 5f 5f 5f 5f | found..|//______|
|00005900| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005910| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005920| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005930| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005940| 5f 5f 5f 5f 5f 5f 0d 42 | 6f 6f 6c 65 61 6e 20 41 |______.B|oolean A|
|00005950| 70 70 6c 69 63 61 74 69 | 6f 6e 49 73 52 75 6e 6e |pplicati|onIsRunn|
|00005960| 69 6e 67 28 20 4f 53 54 | 79 70 65 20 73 69 67 6e |ing( OST|ype sign|
|00005970| 61 74 75 72 65 20 29 0d | 7b 0d 20 20 20 50 72 6f |ature ).|{. Pro|
|00005980| 63 65 73 73 53 65 72 69 | 61 6c 4e 75 6d 62 65 72 |cessSeri|alNumber|
|00005990| 20 20 20 20 20 20 20 70 | 73 6e 3b 0d 20 20 20 50 | p|sn;. P|
|000059a0| 72 6f 63 65 73 73 49 6e | 66 6f 52 65 63 20 20 20 |rocessIn|foRec |
|000059b0| 20 20 20 20 20 20 20 20 | 20 69 6e 66 6f 3b 0d 0d | | info;..|
|000059c0| 20 20 20 70 73 6e 2e 70 | 72 6f 63 65 73 73 49 6e | psn.p|rocessIn|
|000059d0| 66 6f 4c 65 6e 67 74 68 | 20 3d 20 73 69 7a 65 6f |foLength| = sizeo|
|000059e0| 66 28 20 50 72 6f 63 65 | 73 73 49 6e 66 6f 52 65 |f( Proce|ssInfoRe|
|000059f0| 63 20 29 3b 0d 20 20 20 | 70 73 6e 2e 70 72 6f 63 |c );. |psn.proc|
|00005a00| 65 73 73 4e 61 6d 65 20 | 3d 20 30 4c 3b 20 20 20 |essName |= 0L; |
|00005a10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005a20| 20 20 20 20 20 20 20 20 | 20 20 20 20 2f 2f 20 77 | | // w|
|00005a30| 65 20 64 6f 6e 27 74 20 | 63 61 72 65 20 61 62 6f |e don't |care abo|
|00005a40| 75 74 20 74 68 65 20 6e | 61 6d 65 0d 20 20 20 70 |ut the n|ame. p|
|00005a50| 73 6e 2e 70 72 6f 63 65 | 73 73 41 70 70 53 70 65 |sn.proce|ssAppSpe|
|00005a60| 63 20 3d 20 30 4c 3b 20 | 20 20 20 20 20 20 20 20 |c = 0L; | |
|00005a70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005a80| 20 20 20 2f 2f 20 6f 72 | 20 46 53 53 70 65 63 20 | // or| FSSpec |
|00005a90| 6f 66 20 69 74 0d 20 20 | 20 70 73 6e 2e 68 69 67 |of it. | psn.hig|
|00005aa0| 68 4c 6f 6e 67 4f 66 50 | 53 4e 20 3d 20 30 4c 3b |hLongOfP|SN = 0L;|
|00005ab0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2f 2f 20 | | // |
|00005ad0| 73 74 61 72 74 20 66 72 | 6f 6d 20 74 68 65 20 62 |start fr|om the b|
|00005ae0| 65 67 69 6e 69 6e 67 20 | 6f 66 0d 20 20 20 70 73 |egining |of. ps|
|00005af0| 6e 2e 6c 6f 77 4c 6f 6e | 67 4f 66 50 53 4e 20 3d |n.lowLon|gOfPSN =|
|00005b00| 20 6b 4e 6f 50 72 6f 63 | 65 73 73 3b 20 20 20 20 | kNoProc|ess; |
|00005b10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005b20| 20 20 2f 2f 20 74 68 65 | 20 70 72 6f 63 65 73 73 | // the| process|
|00005b30| 20 6c 69 73 74 0d 20 20 | 20 77 68 69 6c 65 20 28 | list. | while (|
|00005b40| 20 47 65 74 4e 65 78 74 | 50 72 6f 63 65 73 73 28 | GetNext|Process(|
|00005b50| 20 26 70 73 6e 20 29 20 | 21 3d 20 70 72 6f 63 4e | &psn ) |!= procN|
|00005b60| 6f 74 46 6f 75 6e 64 20 | 29 20 7b 20 20 2f 2f 20 |otFound |) { // |
|00005b70| 66 6f 72 20 65 61 63 68 | 20 70 72 6f 63 65 73 73 |for each| process|
|00005b80| 0d 20 20 20 20 20 47 65 | 74 50 72 6f 63 65 73 73 |. Ge|tProcess|
|00005b90| 49 6e 66 6f 72 6d 61 74 | 69 6f 6e 28 20 26 70 73 |Informat|ion( &ps|
|00005ba0| 6e 2c 20 26 69 6e 66 6f | 20 29 3b 20 20 20 20 20 |n, &info| ); |
|00005bb0| 20 20 20 20 20 20 20 20 | 2f 2f 20 67 65 74 20 70 | |// get p|
|00005bc0| 72 6f 63 65 73 73 20 69 | 6e 66 6f 0d 20 20 20 20 |rocess i|nfo. |
|00005bd0| 20 69 66 20 28 20 69 6e | 66 6f 2e 70 72 6f 63 65 | if ( in|fo.proce|
|00005be0| 73 73 53 69 67 6e 61 74 | 75 72 65 20 3d 3d 20 73 |ssSignat|ure == s|
|00005bf0| 69 67 6e 61 74 75 72 65 | 20 29 20 20 20 20 20 20 |ignature| ) |
|00005c00| 20 20 20 2f 2f 20 69 66 | 20 6c 6f 6f 6b 69 6e 67 | // if| looking|
|00005c10| 20 66 6f 72 20 73 69 67 | 6e 61 74 75 72 65 0d 20 | for sig|nature. |
|00005c20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005c50| 20 20 20 20 20 20 20 20 | 20 6d 61 74 63 68 65 73 | | matches|
|00005c60| 0d 20 20 20 20 20 20 20 | 20 20 72 65 74 75 72 6e |. | return|
|00005c70| 20 28 20 54 52 55 45 20 | 29 3b 0d 20 20 20 7d 0d | ( TRUE |);. }.|
|00005c80| 20 20 20 72 65 74 75 72 | 6e 20 28 20 46 41 4c 53 | retur|n ( FALS|
|00005c90| 45 20 29 3b 0d 7d 0d 0d | 2f 2f 5f 5f 5f 5f 5f 5f |E );.}..|//______|
|00005ca0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005cb0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005cc0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005cd0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005ce0| 5f 5f 5f 5f 5f 5f 0d 2f | 2f 20 46 75 6e 63 74 69 |______./|/ Functi|
|00005cf0| 6f 6e 3a 20 20 20 20 20 | 20 4c 61 75 6e 63 68 4d |on: | LaunchM|
|00005d00| 79 45 78 74 65 6e 73 69 | 6f 6e 0d 2f 2f 20 41 62 |yExtensi|on.// Ab|
|00005d10| 73 74 72 61 63 74 3a 20 | 20 20 20 20 20 54 68 69 |stract: | Thi|
|00005d20| 73 20 66 75 6e 63 74 69 | 6f 6e 20 75 73 65 73 20 |s functi|on uses |
|00005d30| 50 42 43 61 74 53 65 61 | 72 63 68 20 74 6f 20 66 |PBCatSea|rch to f|
|00005d40| 69 6e 64 20 74 68 65 20 | 65 78 74 65 6e 73 69 6f |ind the |extensio|
|00005d50| 6e 20 69 6e 20 74 68 65 | 0d 2f 2f 20 20 20 20 20 |n in the|.// |
|00005d60| 20 20 20 20 20 20 20 20 | 20 20 20 45 78 74 65 6e | | Exten|
|00005d70| 73 69 6f 6e 73 20 66 6f | 6c 64 65 72 2c 20 61 6e |sions fo|lder, an|
|00005d80| 64 20 69 66 20 66 6f 75 | 6e 64 2c 20 6c 61 75 6e |d if fou|nd, laun|
|00005d90| 63 68 65 73 20 69 74 20 | 77 69 74 68 20 61 70 70 |ches it |with app|
|00005da0| 72 6f 70 72 69 61 74 65 | 0d 2f 2f 20 20 20 20 20 |ropriate|.// |
|00005db0| 20 20 20 20 20 20 20 20 | 20 20 20 70 61 72 61 6d | | param|
|00005dc0| 65 74 65 72 73 2e 0d 2f | 2f 20 50 61 72 61 6d 65 |eters../|/ Parame|
|00005dd0| 74 65 72 73 3a 20 20 20 | 20 73 69 67 6e 61 74 75 |ters: | signatu|
|00005de0| 72 65 20 2d 20 54 68 65 | 20 63 72 65 61 74 6f 72 |re - The| creator|
|00005df0| 20 73 69 67 6e 61 74 75 | 72 65 20 6f 66 20 74 68 | signatu|re of th|
|00005e00| 65 20 64 65 73 69 72 65 | 64 20 45 78 74 65 6e 73 |e desire|d Extens|
|00005e10| 69 6f 6e 73 0d 2f 2f 20 | 52 65 74 75 72 6e 73 3a |ions.// |Returns:|
|00005e20| 20 20 20 20 20 20 20 4f | 53 45 72 72 20 2d 20 6e | O|SErr - n|
|00005e30| 6f 45 72 72 20 69 66 20 | 74 68 65 20 61 70 70 6c |oErr if |the appl|
|00005e40| 69 63 61 74 69 6f 6e 20 | 77 61 73 20 66 6f 75 6e |ication |was foun|
|00005e50| 64 20 69 6e 20 74 68 65 | 20 45 78 74 65 6e 73 69 |d in the| Extensi|
|00005e60| 6f 6e 73 0d 2f 2f 20 20 | 20 20 20 20 20 20 20 20 |ons.// | |
|00005e70| 20 20 20 20 20 20 66 6f | 6c 64 65 72 20 61 6e 64 | fo|lder and|
|00005e80| 20 6c 61 75 6e 63 68 65 | 64 20 73 75 63 63 65 73 | launche|d succes|
|00005e90| 73 66 75 6c 6c 79 2e 0d | 2f 2f 20 20 20 20 20 20 |sfully..|// |
|00005ea0| 20 20 20 20 20 20 20 20 | 20 20 4f 74 68 65 72 77 | | Otherw|
|00005eb0| 69 73 65 2c 20 61 6e 20 | 61 70 70 72 6f 70 72 69 |ise, an |appropri|
|00005ec0| 61 74 65 20 65 72 72 6f | 72 20 66 72 6f 6d 20 46 |ate erro|r from F|
|00005ed0| 69 6e 64 46 6f 6c 64 65 | 72 2c 20 50 42 43 61 74 |indFolde|r, PBCat|
|00005ee0| 53 65 61 72 63 68 2c 0d | 2f 2f 20 20 20 20 20 20 |Search,.|// |
|00005ef0| 20 20 20 20 20 20 20 20 | 20 20 6f 72 20 4c 61 75 | | or Lau|
|00005f00| 6e 63 68 41 70 6c 69 63 | 61 74 69 6f 6e 2e 0d 2f |nchAplic|ation../|
|00005f10| 2f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |/_______|________|
|00005f20| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005f30| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005f40| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005f50| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 0d 0d 4f |________|_____..O|
|00005f60| 53 45 72 72 20 4c 61 75 | 6e 63 68 4d 79 45 78 74 |SErr Lau|nchMyExt|
|00005f70| 65 6e 73 69 6f 6e 28 20 | 4f 53 54 79 70 65 20 73 |ension( |OSType s|
|00005f80| 69 67 6e 61 74 75 72 65 | 20 29 0d 7b 0d 20 20 20 |ignature| ).{. |
|00005f90| 20 4f 53 45 72 72 20 20 | 20 20 20 20 20 20 20 20 | OSErr | |
|00005fa0| 20 20 20 20 65 72 72 3b | 0d 20 20 20 20 73 68 6f | err;|. sho|
|00005fb0| 72 74 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |rt | |
|00005fc0| 76 52 65 66 4e 75 6d 3b | 0d 20 20 20 20 6c 6f 6e |vRefNum;|. lon|
|00005fd0| 67 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |g | |
|00005fe0| 65 78 74 65 6e 73 69 6f | 6e 73 44 69 72 49 44 3b |extensio|nsDirID;|
|00005ff0| 0d 20 20 20 20 43 53 50 | 61 72 61 6d 20 20 20 20 |. CSP|aram |
|00006000| 20 20 20 20 20 20 20 20 | 73 65 61 72 63 68 50 42 | |searchPB|
|00006010| 3b 0d 20 20 20 20 46 53 | 53 70 65 63 41 72 72 61 |;. FS|SpecArra|
|00006020| 79 50 74 72 20 20 20 20 | 20 6d 79 4d 61 74 63 68 |yPtr | myMatch|
|00006030| 65 73 3b 0d 0d 20 20 20 | 20 2f 2f 20 66 69 72 73 |es;.. | // firs|
|00006040| 74 20 66 69 6e 64 20 74 | 68 65 20 45 78 74 65 6e |t find t|he Exten|
|00006050| 73 69 6f 6e 20 66 6f 6c | 64 65 72 0d 20 20 20 20 |sion fol|der. |
|00006060| 65 72 72 20 3d 20 46 69 | 6e 64 46 6f 6c 64 65 72 |err = Fi|ndFolder|
|00006070| 28 20 2d 31 2c 20 6b 45 | 78 74 65 6e 73 69 6f 6e |( -1, kE|xtension|
|00006080| 46 6f 6c 64 65 72 54 79 | 70 65 2c 20 66 61 6c 73 |FolderTy|pe, fals|
|00006090| 65 2c 20 26 76 52 65 66 | 4e 75 6d 2c 20 26 65 78 |e, &vRef|Num, &ex|
|000060a0| 74 65 6e 73 69 6f 6e 73 | 44 69 72 49 44 20 29 3b |tensions|DirID );|
|000060b0| 0d 0d 20 20 20 20 2f 2f | 20 69 66 20 66 6f 75 6e |.. //| if foun|
|000060c0| 64 2c 20 74 68 65 6e 20 | 66 69 6e 64 20 74 68 65 |d, then |find the|
|000060d0| 20 65 78 74 65 6e 73 69 | 6f 6e 20 77 61 6e 74 65 | extensi|on wante|
|000060e0| 64 20 69 6e 20 74 68 65 | 20 66 6f 6c 64 65 72 0d |d in the| folder.|
|000060f0| 20 20 20 20 69 66 20 28 | 20 65 72 72 20 3d 3d 20 | if (| err == |
|00006100| 6e 6f 45 72 72 20 29 20 | 7b 0d 0d 20 20 20 20 20 |noErr ) |{.. |
|00006110| 20 43 49 6e 66 6f 50 42 | 52 65 63 20 20 20 20 20 | CInfoPB|Rec |
|00006120| 20 20 69 6e 66 6f 31 2c | 20 69 6e 66 6f 32 3b 0d | info1,| info2;.|
|00006130| 0d 20 20 20 20 20 20 2f | 2f 20 73 65 74 75 70 20 |. /|/ setup |
|00006140| 70 61 72 61 6d 42 6c 6f | 63 6b 20 66 6f 72 20 74 |paramBlo|ck for t|
|00006150| 68 65 20 43 61 74 53 65 | 61 72 63 68 20 63 61 6c |he CatSe|arch cal|
|00006160| 6c 0d 20 20 20 20 20 20 | 69 6e 66 6f 31 2e 68 46 |l. |info1.hF|
|00006170| 69 6c 65 49 6e 66 6f 2e | 69 6f 4e 61 6d 65 50 74 |ileInfo.|ioNamePt|
|00006180| 72 20 3d 20 6e 69 6c 3b | 0d 20 20 20 20 20 20 2f |r = nil;|. /|
|00006190| 2f 20 64 6f 6e 27 74 20 | 73 65 61 72 63 68 20 6f |/ don't |search o|
|000061a0| 6e 20 73 74 72 69 6e 67 | 20 28 64 6f 6e 27 74 20 |n string| (don't |
|000061b0| 63 61 72 65 20 77 68 61 | 74 20 69 74 73 20 6e 61 |care wha|t its na|
|000061c0| 6d 65 20 69 73 29 0d 20 | 20 20 20 20 20 69 6e 66 |me is). | inf|
|000061d0| 6f 31 2e 68 46 69 6c 65 | 49 6e 66 6f 2e 69 6f 46 |o1.hFile|Info.ioF|
|000061e0| 6c 41 74 74 72 69 62 20 | 3d 20 30 78 30 30 3b 20 |lAttrib |= 0x00; |
|000061f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006200| 20 20 20 20 20 2f 2f 20 | 63 6c 65 61 72 20 62 69 | // |clear bi|
|00006210| 74 20 34 20 74 6f 20 61 | 73 6b 0d 20 20 20 20 20 |t 4 to a|sk. |
|00006220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006240| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006250| 20 20 20 20 20 20 20 20 | 20 20 20 20 66 6f 72 20 | | for |
|00006260| 66 69 6c 65 73 0d 20 20 | 20 20 20 20 69 6e 66 6f |files. | info|
|00006270| 31 2e 68 46 69 6c 65 49 | 6e 66 6f 2e 69 6f 46 6c |1.hFileI|nfo.ioFl|
|00006280| 46 6e 64 72 49 6e 66 6f | 2e 66 64 43 72 65 61 74 |FndrInfo|.fdCreat|
|00006290| 6f 72 20 3d 20 73 69 67 | 6e 61 74 75 72 65 3b 20 |or = sig|nature; |
|000062a0| 20 20 20 20 2f 2f 20 73 | 69 67 6e 61 74 75 72 65 | // s|ignature|
|000062b0| 20 77 65 d5 72 65 20 0d | 20 20 20 20 20 20 20 20 | we.re .| |
|000062c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000062d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000062e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000062f0| 20 20 20 20 20 20 20 20 | 20 69 6e 74 65 72 65 73 | | interes|
|00006300| 74 65 64 20 69 6e 0d 20 | 20 20 20 20 20 69 6e 66 |ted in. | inf|
|00006310| 6f 31 2e 68 46 69 6c 65 | 49 6e 66 6f 2e 69 6f 46 |o1.hFile|Info.ioF|
|00006320| 6c 50 61 72 49 44 20 3d | 20 65 78 74 65 6e 73 69 |lParID =| extensi|
|00006330| 6f 6e 73 44 69 72 49 44 | 3b 0d 20 20 20 20 20 20 |onsDirID|;. |
|00006340| 2f 2f 20 73 65 61 72 63 | 68 20 69 6e 20 45 78 74 |// searc|h in Ext|
|00006350| 65 6e 73 69 6f 6e 73 20 | 66 6f 6c 64 65 72 0d 20 |ensions |folder. |
|00006360| 20 20 20 20 20 69 6e 66 | 6f 31 2e 68 46 69 6c 65 | inf|o1.hFile|
|00006370| 49 6e 66 6f 2e 69 6f 46 | 6c 46 6e 64 72 49 6e 66 |Info.ioF|lFndrInf|
|00006380| 6f 2e 66 64 54 79 70 65 | 20 3d 20 30 78 30 30 3b |o.fdType| = 0x00;|
|00006390| 0d 20 20 20 20 20 20 69 | 6e 66 6f 31 2e 68 46 69 |. i|nfo1.hFi|
|000063a0| 6c 65 49 6e 66 6f 2e 69 | 6f 46 6c 46 6e 64 72 49 |leInfo.i|oFlFndrI|
|000063b0| 6e 66 6f 2e 66 64 46 6c | 61 67 73 20 3d 20 30 78 |nfo.fdFl|ags = 0x|
|000063c0| 30 30 3b 0d 20 20 20 20 | 20 20 69 6e 66 6f 31 2e |00;. | info1.|
|000063d0| 68 46 69 6c 65 49 6e 66 | 6f 2e 69 6f 46 6c 46 6e |hFileInf|o.ioFlFn|
|000063e0| 64 72 49 6e 66 6f 2e 66 | 64 4c 6f 63 61 74 69 6f |drInfo.f|dLocatio|
|000063f0| 6e 2e 68 20 3d 20 30 78 | 30 30 3b 0d 20 20 20 20 |n.h = 0x|00;. |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.